Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { FixedMaxWidth int // FixedMaxWidth maximum width of line / length at which newline should be inserted DynamicMaxWidth bool // DynamicMaxWidth if true, detect terminal max width before every wrap Padding string // Padding string to pad wrapped lines with. Eg. " " for 2-space indent EscapeNewlineStringLiteral bool // EscapeNewlineStringLiteral For `"long strings like this"`, indicates whether inserted newlines should be prefixed with ` \` }
Options options for a word wrapper
Click to show internal directories.
Click to hide internal directories.