不在 GOPATH 的地方初始化时,会报
go: cannot determine module path for source directory
这个时候需要指定模块名字
比如
go mod init github.com/luoyjxg/hello
不在 GOPATH 的地方初始化时,会报
go: cannot determine module path for source directory
这个时候需要指定模块名字
比如
go mod init github.com/luoyjxg/hello