Skip to content

Instantly share code, notes, and snippets.

@cyantarek
Created February 6, 2019 12:28
Show Gist options
  • Save cyantarek/f9e2cfbe050b276b18dadb6b668a1699 to your computer and use it in GitHub Desktop.
Save cyantarek/f9e2cfbe050b276b18dadb6b668a1699 to your computer and use it in GitHub Desktop.
http.HandleFunc("/protected", validateToken(func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello, I'm protected"))
}, srv))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment