Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DocumentOffset ¶
DocumentOffset is a utility function used to turn an LSP cursor position into an offset from the current file buffer.
func Substring ¶
Substring will return a substring of given length from a given index. If the from index is bigger than the length of the string, it will return an empty string. If the given length would result in an OOB error, the function will return the substring up to the length of the string. If the from index or the length is a negative value, it will return an empty string. If the length is 0, it will return everything starting from the provided index to the end of the string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.