Created
March 19, 2015 00:02
-
-
Save lettergram/56922728cc6945e11e4c to your computer and use it in GitHub Desktop.
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
func main() { | |
http.HandleFunc("/login", loginHandler) | |
http.HandleFunc("/logout", logoutHandler) | |
http.HandleFunc("/register", registerHandler) | |
http.HandleFunc("/add-book", bookHandler) | |
http.HandleFunc("/", viewHandler) | |
http.ListenAndServe(":8080", nil) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment