网站首页
编程语言
数据库
系统相关
其他分享
编程问答
tonglin0325
2024-10-19
golang项目引用GitHub私有仓库module
1.创建gomodule项目module的名字假设为go-testmodule项目创建成功后,将go.mod文件中的module"go-test"修改成module"github.com/tonglin0325/go-test"避免引用的时候goget的时候报错,如下gogetgithub.com/tonglin0325/go-test@latestgo:github.com/tonglin0325