MCPcopy Index your code
hub / github.com/bytebase/bytebase / IsURI

Function IsURI

backend/api/lsp/utils.go:19–21  ·  view source on GitHub ↗

IsURI returns true if the given URI is a file:// URI.

(uri lsp.DocumentURI)

Source from the content-addressed store, hash-verified

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

Callers 3

uriToMemFSPathFunction · 0.85
readFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected