Skip to content

Instantly share code, notes, and snippets.

@johan-lejdung
Created July 12, 2019 15:34
Show Gist options
  • Save johan-lejdung/410bef5e9053b60e69c960e5cd31d992 to your computer and use it in GitHub Desktop.
Save johan-lejdung/410bef5e9053b60e69c960e5cd31d992 to your computer and use it in GitHub Desktop.
func middleware(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
// Code for the middleware...
next.ServeHTTP(w, r)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment