github.com/jmigpin/editor@v1.6.0/core/godebug/testdata/gomod10_goproxyoff.txt (about)

     1  cd main
     2  
     3  setenv GOPROXY off
     4  
     5  # needed in order to have a go.sum
     6  exec go mod init example.com
     7  fail exec go mod tidy
     8  contains stderr "cannot find module"
     9  
    10  fail ucmd godebugtester run main.go
    11  contains error "could not import"
    12  #contains stdout "println(true)"
    13  #contains stdout "=> len([97 98 99])"
    14  
    15  -- main/main.go --
    16  package main
    17  import "golang.org/x/tools/godoc/util"
    18  //godebug:annotatepackage:golang.org/x/tools/godoc/util
    19  func main() {
    20  	v:=util.IsText([]byte("abc"))
    21  	println(v)
    22  }