Created
September 24, 2017 12:37
-
-
Save a-know/8b7fbf550a7ac41692a27ccc68c7d94c to your computer and use it in GitHub Desktop.
GAE で静的コンテンツ配信・アプリケーションファイル
This file contains 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("/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