Documentation ¶
Overview ¶
Package wrap handles simple text wrapping to a fixed number of columns.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func String ¶
Wrap a string to the specified number of columns along word breaks (space character). Output will use \n (newline) characters only. No newlines or carriage returns in the input will be preserved, which means that if you pass in text containing several paragraphs you'll get one giant paragraph back. If you wish to avoid that, then split your text into paragraphs and call wrap.String individually on each paragraph.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.