使用go mod replace对依赖的package做可见性修改

📝

内容提要

简单来说,在go.mod中使用replace,可以将依赖库替换为本地目录,就像下面这样:1replace github.com/q191201771/naza => /Volumes/Data/chef_git/naza其中github.com/q191201771/naza是依赖的module的github repo url,/Volumes/Data/chef_git/naza是本地目录。举个栗子。

➡️

继续阅读