Initialize user map (#371)

This commit is contained in:
Jim Kalafut
2018-05-26 15:17:21 -07:00
committed by Kamil Kisiel
parent c85619274f
commit e0b5abaaae

View File

@@ -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)
}