Last active
August 12, 2016 18:19
-
-
Save tkc/7ac10a892a148fbc0f49140fe102aefd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
application: ******** | |
version: 1 | |
runtime: go | |
api_version: go1 | |
handlers: | |
- url: /.* | |
script: _go_app | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package hello | |
import ( | |
"fmt" | |
"net/http" | |
) | |
func init() { | |
http.HandleFunc("/", handler) | |
} | |
func handler(w http.ResponseWriter, r *http.Request) { | |
fmt.Fprint(w, "Hello, world") | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hello | |
├── app.go | |
└── app.yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment