Handle registers handler at /debug/ and adds a link to it on /debug/ with the provided description.
(slug, desc string, handler http.HandlerFunc)
| 114 | // Handle registers handler at /debug/<slug> and adds a link to it |
| 115 | // on /debug/ with the provided description. |
| 116 | func (d *DebugHandler) HandleFunc(slug, desc string, handler http.HandlerFunc) { |
| 117 | d.Handle(slug, desc, handler) |
| 118 | } |
| 119 | |
| 120 | // HandleSilent registers handler at /debug/<slug>. It does not add |
| 121 | // a descriptive entry in /debug/ for it. This should be used |