/
/
opt
/
golang
/
1.22.0
/
src
/
cmd
/
go
/
testdata
/
script
Server: in-mum-web1112.main-hosting.eu (62.72.28.111)
You: 216.73.216.137
PHP 8.3.16
Dir:
/opt/golang/1.22.0/src/cmd/go/testdata/script
Edit:
/opt/golang/1.22.0/src/cmd/go/testdata/script/work_reject_modfile.txt
# Test that -modfile=path/to/go.mod is rejected in workspace mode. ! go list -m -modfile=./a/go.alt.mod stderr 'go: -modfile cannot be used in workspace mode' env GOFLAGS=-modfile=./a/go.alt.mod ! go list -m stderr 'go: -modfile cannot be used in workspace mode' -- go.work -- go 1.20 use ( ./a ) -- a/go.mod -- module example.com/foo go 1.20 -- a/go.alt.mod -- module example.com/foo go 1.20 -- a/main.go -- package main import "fmt" func main() { fmt.Println("Hello world!") }
Ukuran: 495 B