HandleFunc registers a function to handle a request path with.
(path string, fn func(w http.ResponseWriter, r *http.Request))
| 84 | |
| 85 | // HandleFunc registers a function to handle a request path with. |
| 86 | func (h Handler) HandleFunc(path string, fn func(w http.ResponseWriter, r *http.Request)) { |
| 87 | h.mux.HandleFunc(path, fn) |
| 88 | } |