Skip to content

Instantly share code, notes, and snippets.

@IndianGuru
Created September 2, 2015 03:45
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 IndianGuru/4e52126a0c7ad26fce25 to your computer and use it in GitHub Desktop.
Save IndianGuru/4e52126a0c7ad26fce25 to your computer and use it in GitHub Desktop.
mytext.go
package mytext
import (
"fmt"
"net/http"
)
func init() {
http.HandleFunc("/", handler)
}
func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "Hello. This is our first Go web app for Google App Engine!")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment