URL adds a URL and description list item to /debug/.
(url, desc string)
| 152 | |
| 153 | // URL adds a URL and description list item to /debug/. |
| 154 | func (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. |
no outgoing calls