Documentation ¶
Overview ¶
Package textwrap is a semi-port of Python's equivalent module "textwrap". Most of the functionality is similar (or in a progress to get there). The textwrap module provides two convenience methods: Wrap() and Fill(). All of them are methods of textWrap class that does all the work. Package also provides an utility function Dedent() as well as TrimLeft() and TrimRight() to strip a whitespace respectively.
Index ¶
Constants ¶
View Source
const ( // WHITESPACE is a string of symbols that are subject to be stripped // in the incoming data WHITESPACE = " \t\n\r\x0b\x0c" )
Variables ¶
This section is empty.
Functions ¶
func NewTextWrap ¶
func NewTextWrap() *textWrap
NewTextWrap function returns text wrapper instance object. Constructor does not accept any params, however can be configured in chain methods setting configuration settings.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.