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

Function splitHost

stack/html.go:203–209  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

201}
202
203func splitHost(s string) (string, string) {
204 parts := strings.SplitN(s, "/", 2)
205 if len(parts) != 2 {
206 return parts[0], ""
207 }
208 return parts[0], parts[1]
209}
210
211// "v0.0.0-20200223170610-d5e6a3e2c0ae"
212var reVersion = regexp.MustCompile(`v\d+\.\d+\.\d+\-\d+\-([a-f0-9]+)`)

Callers 1

getSrcBranchURLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…