在本地运行Go App Engine应用程序。

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

Running Go App Engine apps locally.

问题

我正在尝试在本地使用开发服务器运行一个App Engine应用程序,正如Google的文档中所指定的那样。由于SDK中打包的Go库缺少系统库,我遇到了大量的编译错误。

查看SDK下载页面,上面写着:

注意:Google App Engine Launcher不适用于Go应用程序。

那么有没有办法在本地启动运行在App Engine上的Go应用程序呢?

英文:

I'm trying to run an App Engine app locally using the development server, as specified in Google's docs. I'm running into a ton of compilation errors due to the go library packaged in the SDK missing system libraries.

Looking at the SDK download page, it says:

> Note: The Google App Engine Launcher does not work with Go apps.

So is there no way to launch Go apps running on App Engine locally?

答案1

得分: 1

GAE Go SDK包含并使用了Go 1.6.2的修改版本,context包是在Go 1.7中添加到标准库中的。捆绑在SDK中的旧API使用appengine.Context上下文。

相关问题请参考:https://stackoverflow.com/questions/39638348/appengine-go-using-a-new-version-of-go-with-the-sdk

英文:

The GAE Go SDK contains and uses a modified version of Go 1.6.2., and the context package was added to the standard lib in Go 1.7. The old API that comes bundled in the SDK uses the appengine.Context context.

See related question: https://stackoverflow.com/questions/39638348/appengine-go-using-a-new-version-of-go-with-the-sdk

huangapple
  • 本文由 发表于 2016年11月12日 00:14:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/40552001.html
匿名

发表评论

匿名网友

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

确定