MCPcopy
hub / github.com/rodrigo-brito/gocity / GetGithubBaseURL

Function GetGithubBaseURL

lib/file.go:43–49  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

41}
42
43func GetGithubBaseURL(path string) (string, bool) {
44 result := regexpGithub.FindStringSubmatch(path)
45 if len(result) > 2 {
46 return fmt.Sprintf("github.com/%s/%s", result[1], result[2]), true
47 }
48 return "", false
49}

Callers 3

mainFunction · 0.92
HandlerMethod · 0.92
TestGetGithubBaseURLFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestGetGithubBaseURLFunction · 0.68