github.com/goplus/igop@v0.25.0/cmd/internal/test/test_go120.go (about) 1 //go:build go1.20 && !go1.21 2 // +build go1.20,!go1.21 3 4 package test 5 6 import ( 7 _ "runtime" 8 _ "unsafe" 9 10 "github.com/goplus/igop" 11 ) 12 13 //go:linkname setUpdate internal/godebug.setUpdate 14 func setUpdate(update func(string, string)) 15 16 func init() { 17 igop.RegisterExternal("internal/godebug.setUpdate", setUpdate) 18 }