Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteOffsetToRuneIndex ¶
ByteOffsetToRuneIndex converts a byte offset to a rune index in a byte slice.
func GetLeadingWhitespace ¶
GetLeadingWhitespace returns the leading whitespace characters (spaces/tabs) from a byte slice.
func RuneIndexToByteOffset ¶
RuneIndexToByteOffset converts a rune index to a byte offset in a byte slice. Returns -1 if runeIndex is out of bounds.
Types ¶
Click to show internal directories.
Click to hide internal directories.