package
0.0.0-20240401142834-ab19c838fe5a
Repository: https://github.com/marcelo-feliz/golang.git
Documentation: pkg.go.dev
# README
HandlerFunc
type HandlerFunc func(ResponseWriter, *Request)
func (f HandlerFunc) ServeHTTP(w ResponseWriter, r *Request)
This is just a nice thing to know about. You wouldn't do this in production code probably.
Question
Could you get http.Handle to take a func with this signature: func(ResponseWriter, *Request)?