github.com/jmigpin/editor@v1.6.0/core/godebug/testdata/gomod12_godoc.txt (about) 1 # mod dependency is on godoc, but the annotated package is util 2 3 cd main 4 5 exec go mod init example.com 6 # needed in order to have a go.sum 7 exec go mod tidy 8 9 ucmd godebugtester run main.go 10 # from godoc pkg annotations 11 contains stdout "=> Scan()" 12 contains stdout "=> len([97 98 99])" 13 14 -- main/main.go -- 15 package main 16 import "bytes" 17 //godebug:annotateimport 18 import "golang.org/x/tools/godoc" 19 //godebug:annotateimport 20 import "golang.org/x/tools/godoc/util" 21 func main() { 22 buf:=&bytes.Buffer{} 23 godoc.Linkify(buf, []byte("012")) 24 v:=util.IsText([]byte("abc")) 25 println(v) 26 }