Browse Source

Initialize user map (#371)

pull/384/head
Jim Kalafut 8 years ago committed by Kamil Kisiel
parent
commit
e0b5abaaae
  1. 2
      example_authentication_middleware_test.go

2
example_authentication_middleware_test.go

@ -40,7 +40,7 @@ func Example_authenticationMiddleware() {
r.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { r.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
// Do something here // Do something here
}) })
amw := authenticationMiddleware{} amw := authenticationMiddleware{make(map[string]string)}
amw.Populate() amw.Populate()
r.Use(amw.Middleware) r.Use(amw.Middleware)
} }

Loading…
Cancel
Save