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.
This commit is contained in:
Ayke van Laethem
2023-01-13 20:02:54 +01:00
committed by Ron Evans
parent d639e01650
commit 19db0144ae
+6
View File
@@ -95,3 +95,9 @@ func KeepAlive(x interface{}) {
func SetFinalizer(obj interface{}, finalizer interface{}) {
// Unimplemented.
}
//go:linkname godebug_setUpdate internal/godebug.setUpdate
func godebug_setUpdate(update func(string, string)) {
// Unimplemented. The 'update' function needs to be called whenever the
// GODEBUG environment variable changes (for example, via os.Setenv).
}