Documentation ¶
Index ¶
- func IsAbs(path string) bool
- func IsURI(s lsp.DocumentURI) bool
- func IsVendorDir(dir string) bool
- func Panicf(r interface{}, format string, v ...interface{}) error
- func PathEqual(a, b string) bool
- func PathHasPrefix(s, prefix string) bool
- func PathToURI(path string) lsp.DocumentURI
- func PathTrimPrefix(s, prefix string) string
- func PrepareContext(bctx *build.Context, ctx context.Context, fs ctxvfs.FileSystem)
- func UriToPath(uri lsp.DocumentURI) string
- func UriToRealPath(uri lsp.DocumentURI) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsVendorDir ¶
IsVendorDir tells if the specified directory is a vendor directory.
func Panicf ¶
Panicf takes the return value of recover() and outputs data to the log with the stack trace appended. Arguments are handled in the manner of fmt.Printf. Arguments should format to a string which identifies what the panic code was doing. Returns a non-nil error if it recovered from a panic.
func PathHasPrefix ¶
PathHasPrefix returns true if s is starts with the given prefix
func PathToURI ¶
func PathToURI(path string) lsp.DocumentURI
PathToURI converts given absolute path to file URI
func PathTrimPrefix ¶
PathTrimPrefix removes the prefix from s
func PrepareContext ¶
func UriToPath ¶
func UriToPath(uri lsp.DocumentURI) string
UriToPath converts given file URI to path
func UriToRealPath ¶
func UriToRealPath(uri lsp.DocumentURI) string
UriToRealPath converts the given file URI to the platform specific path
Types ¶
This section is empty.