Skip to content

Commit 75897e7

Browse files
committed
runtime: implement internal/godebug.setUpdate as a stub
This function provides a mechanism to watch for changes to the GODEBUG environment variable. For now, we'll not implement it. It might be useful in the future, when it can always be added.
1 parent 3a5068f commit 75897e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/runtime/runtime.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,9 @@ func KeepAlive(x interface{}) {
9595
func SetFinalizer(obj interface{}, finalizer interface{}) {
9696
// Unimplemented.
9797
}
98+
99+
//go:linkname godebug_setUpdate internal/godebug.setUpdate
100+
func godebug_setUpdate(update func(string, string)) {
101+
// Unimplemented. The 'update' function needs to be called whenever the
102+
// GODEBUG environment variable changes (for example, via os.Setenv).
103+
}

0 commit comments

Comments
 (0)