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

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

View as plain text