package
0.0.0-20191213230751-ef2d6fb2fe25
Repository: https://github.com/goestoeleven/golang-web-dev.git
Documentation: pkg.go.dev

# README

HandlerFunc

http.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)?