GO_GAE构建go-playground时出现错误。

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

GO_GAE build go-playground error

问题

我想将go-playground上传到我的自己的GAE上,以便在线使用Go语言编码。
首先,我使用命令goapp serve,但返回了“找不到包“code.google.com/p/go.tools/godoc”。然后,我下载了它,使用命令go get code.google.com/p/go.tools/cmd/godoc
但是,当我再次尝试goapp serve命令时,它显示了这个错误:“gocode/src/code.google.com/p/go.tools/astutil/enclosing.go:435: n.Lparen未定义(*ast.TypeAssertExpr类型没有Lparen字段或方法)”;我尝试使用go1.1和go1.2来修复这个问题,但没有成功。我对Go语言还很陌生,有人可以帮助我吗?谢谢。

英文:

I wanna upload go-playground to my own GAE to code with go online.
Firstly, I use the command goapp serve and it returns Can't find package "code.google.com/p/go.tools/godoc. Then, I download it, go get code.google.com/p/go.tools/cmd/godoc;
But then, when I retry goapp serve command and it shows this: gocode/src/code.google.com/p/go.tools/astutil/enclosing.go:435: n.Lparen undefined (type *ast.TypeAssertExpr has no field or method Lparen); I try to fix this with go1.1 & go1.2 and it doesn't work. I'm a fresh man with go, can anyone help me with this? thx.

答案1

得分: 0

Godoc要求Go 1.2版本,但Go App Engine只支持从App Engine 1.9.0开始的Go 1.2版本。你要么等待支持,要么使用api_version: go1.2beta上传。

英文:

Godoc requires Go 1.2, but Go App Engine only picks up Go 1.2 from App Engine 1.9.0. You'll either need to wait for that, or upload with api_version: go1.2beta.

huangapple
  • 本文由 发表于 2014年1月19日 21:07:43
  • 转载请务必保留本文链接:https://go.coder-hub.com/21217144.html
匿名

发表评论

匿名网友

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

确定