github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/mod_off_init.txt (about)

     1  # 'go mod init' should refuse to initialize a module if it will be
     2  # ignored anyway due to GO111MODULE=off.
     3  env GO111MODULE=off
     4  ! go mod init
     5  stderr 'go mod init: modules disabled by GO111MODULE=off; see ''go help modules'''