MCPcopy Index your code
hub / github.com/tailscale/tailscale / URL

Method URL

tsweb/debug.go:154–159  ·  view source on GitHub ↗

URL adds a URL and description list item to /debug/.

(url, desc string)

Source from the content-addressed store, hash-verified

152
153// URL adds a URL and description list item to /debug/.
154func (d *DebugHandler) URL(url, desc string) {
155 if desc != "" {
156 desc = " (" + desc + ")"
157 }
158 d.urls = append(d.urls, fmt.Sprintf(`<li><a href="%s">%s</a>%s</li>`, url, url, html.EscapeString(desc)))
159}
160
161// Section invokes f on every render of /debug/ to add supplemental
162// HTML to the page body.

Callers 6

HandleMethod · 0.95
addProfilingHandlersFunction · 0.80
TestDebuggerURLFunction · 0.80
ExampleDebugHandler_URLFunction · 0.80
StatusHandlerMethod · 0.80
SetRemotesMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestDebuggerURLFunction · 0.64
ExampleDebugHandler_URLFunction · 0.64