package
module
Version:
v0.0.0-...-d8f3725
Opens a new window with list of versions in this module.
Published: Aug 12, 2018
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
Package linebreak wraps text at a given width
Greedy formats text at the given width greedily
Wrap formats text at the given width in linear time
text := "a b c d e f g h i j k l m n o p qqqqqqqqq"
width := 9
textWrapped := linebreak.Wrap(text, width, width)
fmt.Println(textWrapped)
Output:
a b c d
e f g h
i j k l
m n o p
qqqqqqqqq
Source Files
¶
Click to show internal directories.
Click to hide internal directories.