IsURI returns true if the given URI is a file:// URI.
(uri lsp.DocumentURI)
| 17 | |
| 18 | // IsURI returns true if the given URI is a file:// URI. |
| 19 | func IsURI(uri lsp.DocumentURI) bool { |
| 20 | return strings.HasPrefix(string(uri), "file://") |
| 21 | } |
| 22 | |
| 23 | // URIToPath converts a URI to a file path. |
| 24 | func URIToPath(uri lsp.DocumentURI) string { |
no outgoing calls
no test coverage detected