Type Range

type Range struct {
	Start int
	End   int
}

Range is a half-open rune range.

Constructors

WordRange#

func WordRange(value string, index int) Range

WordRange returns the run around a pointer position, on grapheme boundaries.