Documentation ¶
Overview ¶
Copyright (c) 2019 by Gilbert Ramirez <gram@alumni.rice.edu>
Copyright (c) 2020 by Gilbert Ramirez <gram@alumni.rice.edu>
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNWSIterator ¶ added in v1.1.0
func NewNWSIterator(text string) *nwsIterator
Iterates over a string, returning non-whitespace spans of strings.
func WrapPrintedWords ¶ added in v1.1.0
func WrapPrintedWords(words []*PrintedWord, maxWidth int) []string
Types ¶
type PrintedWord ¶ added in v1.1.0
func WhitespaceSplit ¶ added in v1.1.0
func WhitespaceSplit(text string) []*PrintedWord
Click to show internal directories.
Click to hide internal directories.