MCPcopy Index your code
hub / github.com/maruel/panicparse / srcURL

Function srcURL

stack/html.go:119–122  ·  view source on GitHub ↗

srcURL returns an URL to the sources. TODO(maruel): Support custom local godoc server as it serves files too.

(c *Call)

Source from the content-addressed store, hash-verified

117//
118// TODO(maruel): Support custom local godoc server as it serves files too.
119func srcURL(c *Call) template.URL {
120 url, _ := getSrcBranchURL(c)
121 return url
122}
123
124func escape(s string) template.URL {
125 // That's the only way I found to get the kind of escaping I wanted, where

Callers 1

TestGetSrcBranchURLFunction · 0.85

Calls 1

getSrcBranchURLFunction · 0.85

Tested by 1

TestGetSrcBranchURLFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…