()
| 36 | } |
| 37 | |
| 38 | func Example_authenticationMiddleware() { |
| 39 | r := mux.NewRouter() |
| 40 | r.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { |
| 41 | // Do something here |
| 42 | }) |
| 43 | amw := authenticationMiddleware{make(map[string]string)} |
| 44 | amw.Populate() |
| 45 | r.Use(amw.Middleware) |
| 46 | } |
nothing calls this directly
no test coverage detected