(path string)
| 41 | } |
| 42 | |
| 43 | func 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 | } |
no outgoing calls