symbol is the hashtag to use to refer to the symbol when looking at documentation. All of godoc/gddo, pkg.go.dev and golang.org/godoc use the same symbol reference format.
(f *Func)
| 236 | // All of godoc/gddo, pkg.go.dev and golang.org/godoc use the same symbol |
| 237 | // reference format. |
| 238 | func symbol(f *Func) template.URL { |
| 239 | s := f.Name |
| 240 | if reMethodSymbol.MatchString(s) { |
| 241 | // Transform the method form. |
| 242 | s = reMethodSymbol.ReplaceAllString(s, "$1$2") |
| 243 | } |
| 244 | /* #nosec G203 */ |
| 245 | return template.URL(url.QueryEscape(s)) |
| 246 | } |
no outgoing calls
searching dependent graphs…