Google Glass快速入门指南中的GO错误

huangapple go评论88阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2014年3月13日 02:15:54
  • 转载请务必保留本文链接:https://go.coder-hub.com/22360371.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定