This is a creation in Article, where the information may have evolved or changed.
Apply Google App Engine ID specific steps to ask Google
Deploy a goagent, or you're not going to be on the mainland. Step through the steps below to ask Google
Download GO_APPENGINE_SDK, test under Windows, the next version is go_appengine_sdk_windows_386-1.8.8
Download Python 2.7.6 http://www.python.org/download/releases/2.7.6/
One of the most wasteful steps of my time: Uninstall Alibaba delete the "Alibaba accepted files" in the registration table
Of course there is a better solution to this step, and there is no careful study
Coding
Hello/hello.go
Package Helloimport ("FMT" "Net/http") func init () {http. Handlefunc ("/", Handler)}func handler (w http.) Responsewriter, R *http. Request) {fmt. Fprint (W, "Hello, xxx!")}
App.yaml
application:xxxversion:1runtime:goapi_version:go1handlers:-URL:/.* script: _go_app
7. Compiling test Runs
Copy the code and YAML to the app directory
Directory structure
app/
Hello/hello.go
App.yaml
dev_appserver.py app/
It's all right to visit http://localhost:8080/
You should see it on the web.
Hello, xxx!.
8. Upload App
appcfg.py Update App
9. Access your app (provided that you run Goagent)
http://yourappid.appspot.com/