Skip to content
Permalink
Browse files
Initialize user map (#371)
  • Loading branch information
kalafut authored and kisielk committed May 26, 2018
1 parent c856192 commit e0b5abaaae35242fa74372f26c24107711702a4e
Showing 1 changed file with 1 addition and 1 deletion.
@@ -40,7 +40,7 @@ func Example_authenticationMiddleware() {
r.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
// Do something here
})
amw := authenticationMiddleware{}
amw := authenticationMiddleware{make(map[string]string)}
amw.Populate()
r.Use(amw.Middleware)
}

0 comments on commit e0b5aba

Please sign in to comment.