Documentation ¶
Overview ¶
Package strings contains functions to manipulate strings
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WordWrap ¶
func WordWrap(in string, opts WordWrapOpts) string
WordWrap - insert line-breaks into the string, before it reaches the given width.
Types ¶
type WordWrapOpts ¶
type WordWrapOpts struct { // The desired maximum line length in characters (defaults to 80) Width uint // Line-break sequence to insert (defaults to "\n") LBSeq string }
WordWrapOpts defines the options to apply to the WordWrap function
Click to show internal directories.
Click to hide internal directories.