Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pkieltyka committed Jan 3, 2022
1 parent 3e5747d commit 55dd7fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mux.go
Expand Up @@ -29,8 +29,8 @@ type Mux struct {
// Custom method not allowed handler
methodNotAllowedHandler http.HandlerFunc

// Controls the behaviour of middleware chain generation when a mux
// is registered as an inline group inside another mux.
// A reference to the parent mux used by subrouters when mounting
// to a parent mux
parent *Mux

// Routing context pool
Expand All @@ -42,6 +42,8 @@ type Mux struct {
// The middleware stack
middlewares []func(http.Handler) http.Handler

// Controls the behaviour of middleware chain generation when a mux
// is registered as an inline group inside another mux.
inline bool
}

Expand Down

0 comments on commit 55dd7fc

Please sign in to comment.