Skip to content

Instantly share code, notes, and snippets.

@a-know
Created September 24, 2017 12:37
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 a-know/8b7fbf550a7ac41692a27ccc68c7d94c to your computer and use it in GitHub Desktop.
Save a-know/8b7fbf550a7ac41692a27ccc68c7d94c to your computer and use it in GitHub Desktop.
GAE で静的コンテンツ配信・アプリケーションファイル
package hello
import (
"fmt"
"net/http"
)
func init() {
http.HandleFunc("/hello", handler)
}
func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "Hello, world! by go-app")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment