HandlerFunc is similar to the http.HandlerFunc type; it serves as an adapter allowing the use of ordinary functions as Handlers. If f is a function with the appropriate signature, HandlerFunc(f) is a Handler object that calls f.
func(http.ResponseWriter, *http.Request) error
| 27 | // f is a function with the appropriate signature, HandlerFunc(f) is a |
| 28 | // Handler object that calls f. |
| 29 | type HandlerFunc func(http.ResponseWriter, *http.Request) error |
| 30 | |
| 31 | // Handle calls f(w, r) |
| 32 | func (f HandlerFunc) Handle(w http.ResponseWriter, r *http.Request) error { |
no outgoing calls
no test coverage detected
searching dependent graphs…