go mod init 报错

go mod init  projectName

 

go mod init  会报错:

go: cannot determine module path for source directory /xxx/xxx/xxx/name (outside GOPATH, module path must be specified)

posted @ 2021-05-28 11:04  winyh  阅读(732)  评论(0编辑  收藏  举报