...

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

Documentation: cmd/go/testdata/script

     1env GO111MODULE=on
     2
     3! go mod init .
     4stderr '^go: malformed module path ".": is a local import path$'
     5
     6cd x
     7go mod init example.com/x
     8
     9cd ../y
    10go mod init m
    11
    12-- x/main.go --
    13package main
    14
    15func main() {}
    16
    17-- y/main.go --
    18package main
    19
    20func main() {}

View as plain text