1go env GOWORK 2stdout '^'$GOPATH'[\\/]src[\\/]go.work$' 3go env 4stdout '^(set )?GOWORK=''?'$GOPATH'[\\/]src[\\/]go.work''?$' 5 6cd .. 7go env GOWORK 8! stdout . 9go env 10stdout 'GOWORK=("")?' 11 12cd src 13go env GOWORK 14stdout 'go.work' 15 16env GOWORK='off' 17go env GOWORK 18stdout 'off' 19 20! go env -w GOWORK=off 21stderr '^go: GOWORK cannot be modified$' 22 23-- go.work -- 24go 1.18 25 26use a 27-- a/go.mod -- 28module example.com/a