当我试图运行go go go项目根路径ChaatzFeaturePhoneServer.它提示
go get package FeaturePhoneServer/routers: unrecognized import path "FeaturePhoneServer/routers"
我对此很困惑.可能的原因是什么?我怎样才能找出原因并加以解决?
检查您的GOPATH环境变量:
期待在$GOPATH / src中找到FeaturePhoneServer / routers(见go build
)
Avoid relative import paths.
如果错误仍然存在,您还可以检查GOROOT并进行安装,as in this question.