MCPcopy Index your code
hub / github.com/go-task/task / splitURLOnDoubleSlash

Function splitURLOnDoubleSlash

taskfile/node_git.go:246–256  ·  view source on GitHub ↗
(u *url.URL)

Source from the content-addressed store, hash-verified

244}
245
246func splitURLOnDoubleSlash(u *url.URL) (string, string) {
247 x := strings.Split(u.Path, "//")
248 switch len(x) {
249 case 0:
250 return "", ""
251 case 1:
252 return x[0], ""
253 default:
254 return x[0], x[1]
255 }
256}

Callers 1

NewGitNodeFunction · 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…