isHttpSpecifier returns true if the specifier is a remote URL.
(specifier string)
| 55 | |
| 56 | // isHttpSpecifier returns true if the specifier is a remote URL. |
| 57 | func isHttpSpecifier(specifier string) bool { |
| 58 | return strings.HasPrefix(specifier, "https://") || strings.HasPrefix(specifier, "http://") |
| 59 | } |
| 60 | |
| 61 | // isRelPathSpecifier returns true if the specifier is a local path. |
| 62 | func isRelPathSpecifier(specifier string) bool { |
no outgoing calls
no test coverage detected