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