Skip to content

Instantly share code, notes, and snippets.

@tkc
Last active August 12, 2016 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkc/7ac10a892a148fbc0f49140fe102aefd to your computer and use it in GitHub Desktop.
Save tkc/7ac10a892a148fbc0f49140fe102aefd to your computer and use it in GitHub Desktop.
application: ********
version: 1
runtime: go
api_version: go1
handlers:
- url: /.*
script: _go_app
package hello
import (
"fmt"
"net/http"
)
func init() {
http.HandleFunc("/", handler)
}
func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "Hello, world")
}
hello
├── app.go
└── app.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment