...

Text file src/cmd/go/testdata/script/list_testdata.txt

Documentation: cmd/go/testdata/script

     1# Issue 65406. The testdata directory in GOROOT/src
     2# shouldn't be treated as a standard package.
     3
     4go list -f '{{.ImportPath}} {{.Dir}}' testdata
     5! stderr 'found package testdata in multiple modules'
     6stdout 'testdata '$WORK${/}'gopath'${/}'src'
     7
     8-- go.mod --
     9module testdata
    10-- p.go --
    11package p

View as plain text