在本地运行Go App Engine应用程序。 [英] Running Go App Engine apps locally.

查看:464
本文介绍了在本地运行Go App Engine应用程序。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用开发服务器,如Google文档中所述。由于在SDK缺失系统库中打包了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.

查看 SDK下载它说:

Looking at the SDK download page, it says:


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

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

那么是否无法在本地启动在App Engine上运行的Go应用程序?

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

推荐答案

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

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.

请参阅相关问题: AppEngine / Go:使用Go的新版本SDK

这篇关于在本地运行Go App Engine应用程序。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆