Initialize user map (#371)
This commit is contained in:
committed by
Kamil Kisiel
parent
c85619274f
commit
e0b5abaaae
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user