Documentation ¶
Index ¶
- func DetectNewline(input []byte) string
- func EnsureFile(path string) error
- func GetMatches(exp *regexp.Regexp, text string) []map[string]Match
- func LineNumber(source string, pos int) int
- func Lines(source string) []string
- func Max[T constraints.Ordered](a T, b T) T
- func Min[T constraints.Ordered](a T, b T) T
- func MinIndent(lines []string) int
- func PreviewLines(lines []string, length int) []string
- type Match
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectNewline ¶
func EnsureFile ¶
func LineNumber ¶
func LineNumber(source string, pos int, newline string) int {
func Max ¶
func Max[T constraints.Ordered](a T, b T) T
func Min ¶
func Min[T constraints.Ordered](a T, b T) T
func PreviewLines ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.