github.com/jmigpin/editor@v1.6.0/core/godebug/testdata/gomod04.txt (about) 1 # annotate package 2 3 cd main 4 ucmd godebugtester run main.go 5 contains stdout "\"F1a\"\n" 6 contains stdout "\"F1b\"\n" 7 8 -- main/go.mod -- 9 module mod1 10 require example.com/pkg1 v0.0.0 11 replace example.com/pkg1 => ../pkg1 12 -- main/main.go -- 13 package main 14 import "example.com/pkg1" 15 func main() { 16 _=pkg1.F1a() 17 _=pkg1.F1b() 18 } 19 -- pkg1/go.mod -- 20 module example.com/pkg1 21 -- pkg1/f1a.go -- 22 package pkg1 23 func F1a() string { 24 //godebug:annotatepackage 25 return "F1a" 26 } 27 -- pkg1/f1b.go -- 28 package pkg1 29 func F1b() string { 30 return "F1b" 31 }