IsLocalEndpoint returns true if the given URL string specifies a local file endpoint. For example, on a Linux machine, `/home/user/src/go-git` would match as a local endpoint, but `https://github.com/src-d/go-git` would not.
(url string)
| 68 | // `/home/user/src/go-git` would match as a local endpoint, but |
| 69 | // `https://github.com/src-d/go-git` would not. |
| 70 | func IsLocalEndpoint(url string) bool { |
| 71 | return !MatchesScheme(url) && !MatchesScpLike(url) |
| 72 | } |
no test coverage detected
searching dependent graphs…