Documentation ¶
Index ¶
- func IsAbs(path string) bool
- func IsURI(s golsp.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) golsp.DocumentURI
- func PathTrimPrefix(s, prefix string) string
- func UriToPath(uri golsp.DocumentURI) string
- func UriToRealPath(uri golsp.DocumentURI) string
- type Handler
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) golsp.DocumentURI
PathToURI converts given absolute path to file URI
func PathTrimPrefix ¶
PathTrimPrefix removes the prefix from s
func UriToPath ¶
func UriToPath(uri golsp.DocumentURI) string
UriToPath converts given file URI to path
func UriToRealPath ¶
func UriToRealPath(uri golsp.DocumentURI) string
UriToRealPath converts the given file URI to the platform specific path
Types ¶
type Handler ¶
func NewHandler ¶
Click to show internal directories.
Click to hide internal directories.