go mod模式下如何使用本地项目中的包

假如本地项目是 p1

需要在根目录下的go.mod文件中加入下面命令

 

module p1

go 1.14

 

posted @ 2020-06-23 22:42  zhjahch  阅读(1223)  评论(0编辑  收藏  举报