英文:
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
.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论