Documentation ¶ Index ¶ func Ellipsize(line string, maxWidth float64, measure Measure) string func Wrap(text string, maxWidth float64, measure Measure) []string type Measure Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Ellipsize ¶ func Ellipsize(line string, maxWidth float64, measure Measure) string func Wrap ¶ func Wrap(text string, maxWidth float64, measure Measure) []string Wrap performs deterministic greedy wrapping on grapheme cluster boundaries. Spaces are preferred for Latin text; CJK and oversized tokens always retain a grapheme-level escape hatch. Types ¶ type Measure ¶ type Measure func(string) float64 Source Files ¶ View all Source files wrap.go Click to show internal directories. Click to hide internal directories.