英文:
Google Glass Quickstart for GO Errors
问题
在构建Google Glass镜像API的GO快速入门时,我遇到了以下错误。有人能解决这个问题吗?
attachment.go:21: 找不到导入: "code.google.com/p/google-api-go-client/mirror/v1"
更新以显示.bashrc中的相关条目:
export PATH=$HOME/go_appengine:$PATH
export GOPATH=$HOME/go:$GOPATH
英文:
When building the GO quickstart for the Google Glass mirror API I am getting the following error. Has anyone been able to resolve this?
attachment.go:21: can't find import: "code.google.com/p/google-api-go-client/mirror/v1"
Update to show relavant entries from .bashrc:
export PATH=$HOME/go_appengine:$PATH
export GOPATH=$HOME/go:$GOPATH
答案1
得分: 3
在你的控制台中运行go get code.google.com/p/google-api-go-client/mirror/v1
,然后再试一次。确保在此之前设置了$GOPATH
。
英文:
In your console, run go get code.google.com/p/google-api-go-client/mirror/v1
and try again. Make sure you have $GOPATH
set before.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论