package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: May 17, 2021
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 69
Opens a new window with list of known importers.
Documentation
¶
Bytes is shorthand for declaring a new default Wrap instance,
used to immediately wrap a byte slice.
String is shorthand for declaring a new default Wrap instance,
used to immediately wrap a string.
type Wrap struct {
Limit int
Newline []rune
KeepNewlines bool
PreserveSpace bool
TabWidth int
}
NewWriter returns a new instance of a wrapping writer, initialized with
default settings.
Bytes returns the wrapped result as a byte slice.
String returns the wrapped result as a string.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.