Last active
October 18, 2016 10:51
-
-
Save kaneshin/a6261f7d32e55dc089eda32822c4bd0e 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
package app | |
import ( | |
"net/http" | |
"github.com/gorilla/mux" | |
) | |
func init() { | |
r := mux.NewRouter() | |
r.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { | |
w.Write([]byte("It works!")) | |
}) | |
http.Handle("/", r) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment