()
| 162 | } |
| 163 | |
| 164 | func ExampleDebugHandler_Handle() { |
| 165 | mux := http.NewServeMux() |
| 166 | dbg := Debugger(mux) |
| 167 | // Registers /debug/flushcache with the given handler, and adds a |
| 168 | // link to /debug/ with the description "Flush caches". |
| 169 | dbg.Handle("flushcache", "Flush caches", http.HandlerFunc(http.NotFound)) |
| 170 | } |
| 171 | |
| 172 | func ExampleDebugHandler_KV() { |
| 173 | mux := http.NewServeMux() |