isAbsPathSpecifier returns true if the specifier is an absolute path.
(specifier string)
| 29 | |
| 30 | // isAbsPathSpecifier returns true if the specifier is an absolute path. |
| 31 | func isAbsPathSpecifier(specifier string) bool { |
| 32 | return strings.HasPrefix(specifier, "/") || strings.HasPrefix(specifier, "file://") |
| 33 | } |
| 34 | |
| 35 | // encodeUrl converts a url.URL to a string without escaping the path. |
| 36 | func encodeUrl(u *url.URL) string { |
no outgoing calls
no test coverage detected