Answers for "go testing cannot find main module; see 'go help modules'"

0

go testing cannot find main module; see 'go help modules'

After upgrade to go1.16, try to set :

go env -w GO111MODULE=auto

https://blog.golang.org/go116-module-changes

Thx
Posted by: Guest on March-17-2021

Browse Popular Code Answers by Language