Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. http.HandleFunc("/", handler)
  2.  
  3. func handler(w http.ResponseWriter, r *http.Request) {
  4. if r.URL.Path != "/" {
  5. // Write custom 404 Page to w.Write()
  6. return
  7. }
  8. // Handling for route /
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement