Skip to content

Instantly share code, notes, and snippets.

@lettergram
Created March 19, 2015 00:02
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 lettergram/56922728cc6945e11e4c to your computer and use it in GitHub Desktop.
Save lettergram/56922728cc6945e11e4c to your computer and use it in GitHub Desktop.
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