8 lines
201 B
Go
8 lines
201 B
Go
|
package middleware
|
||
|
|
||
|
import "net/http"
|
||
|
|
||
|
// Middleware is a function that is meant to be chained with other functions
|
||
|
// through an http request lifecycle
|
||
|
type Middleware func(http.Handler) http.Handler
|