MCPcopy
hub / github.com/tailscale/tailscale / ExampleDebugHandler_KV

Function ExampleDebugHandler_KV

tsweb/debug_test.go:172–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170}
171
172func ExampleDebugHandler_KV() {
173 mux := http.NewServeMux()
174 dbg := Debugger(mux)
175 // Adds two list items to /debug/, showing that the condition is
176 // red and there are 42 donuts.
177 dbg.KV("Condition", "red")
178 dbg.KV("Donuts", 42)
179}
180
181func ExampleDebugHandler_KVFunc() {
182 mux := http.NewServeMux()

Callers

nothing calls this directly

Calls 2

KVMethod · 0.80
DebuggerFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…