cannot find package “github.com/json-iterator/go“cannot find package “github.com/modern-go/reflect2“
生活随笔
收集整理的這篇文章主要介紹了
cannot find package “github.com/json-iterator/go“cannot find package “github.com/modern-go/reflect2“
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
1. 問題現(xiàn)象
../github.com/coreos/etcd/client/json.go:18:2:
cannot find package "github.com/json-iterator/go" in any of:/usr/local/go/src/github.com/json-iterator/go (from $GOROOT)/home/wohu/GoCode/src/github.com/json-iterator/go (from $GOPATH)
../github.com/coreos/etcd/client/json.go:19:2:
cannot find package "github.com/modern-go/reflect2" in any of:/usr/local/go/src/github.com/modern-go/reflect2 (from $GOROOT)/home/wohu/GoCode/src/github.com/modern-go/reflect2 (from $GOPATH)
2. 解決方案
go get -v github.com/json-iterator/go
示例:
wohu@wohu:~/GoCode/src$ go get -v github.com/json-iterator/go
github.com/json-iterator/go (download)
github.com/modern-go/concurrent (download)
github.com/modern-go/reflect2 (download)
github.com/modern-go/concurrent
github.com/modern-go/reflect2
github.com/json-iterator/go
wohu@wohu:~/GoCode/src$
總結(jié)
以上是生活随笔為你收集整理的cannot find package “github.com/json-iterator/go“cannot find package “github.com/modern-go/reflect2“的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 2022-2028年中国ABS管行业市场
- 下一篇: 2022-2028年中国瓷砖粘结剂行业市