1.创建go module项目
module的名字假设为go-test
module项目创建成功后,将go.mod文件中的 module "go-test" 修改成
module "github.com/tonglin0325/go-test"
避免引用的时候go get的时候报错,如下
go get github.com/tonglin0325/go-test@latest go: github.com/tonglin0325/go-test@latest (v1.0.0) requires github.com/tonglin0325/[email protected]: parsing go.mod: module declares its path as: go-test but was required as: github.com/tonglin0325/go-test
标签:GitHub,tonglin0325,module,golang,test,github,go,com From: https://www.cnblogs.com/tonglin0325/p/18486645