package
0.0.0-20210726165104-42ea4af6fad4
Repository: https://github.com/chenyendu/gowebdev.git
Documentation: pkg.go.dev

# README

HandlerFunc

http.HandlerFunc

type HandlerFunc func(ResponseWriter, *Request)
func (f Handler) 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)?