我试图在我的golang代码中导入一个包。 但这向我显示了此错误:
cannot find package"github.com/mattbaird/jsonpatch" in any of:
/opt/go/src/github.com/mattbaird/jsonpatch (from $GOROOT)
/chaincode/input/src/github.com/mattbaird/jsonpatch (from $GOPATH)
/opt/gopath/src/github.com/mattbaird/jsonpatch"
有人可以帮我解决这个问题吗?
谢谢。
重新检查您的环境变量(
您面临的问题是,您的代码正在
确保正确设置了
然后仔细检查软件包是否已安装,如果不需要,则需要安装可以使用的软件包。