0
点赞
收藏
分享

微信扫一扫

tail包不能导入问题

沪钢木子 2022-02-22 阅读 75

tail包不能导入问题

image-20220222212405477

在使用 GOPROXY 的时候,开启了 GO111MODULE,导致包管理非官方所说的在 $GOPATH\src\,而是去了 $GOPATH\src\pkg\目录下,

go mod init github.com/hpcloud/tail

 go mod edit -require github.com/hpcloud/tail@latest

image-20220222213452875

举报

相关推荐

0 条评论