package
0.0.0-20201028204652-de190fe47b8b
Repository: https://github.com/martinohmann/neat.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
CountLines returns the number of lines in s.
DisplayWidth returns the display width of s.
IsMultiline returns true if s contains newlines.
JoinLines joins lines together with newline characters.
MaxDisplayWidth returns the display width of the longest line in the lines slice.
New creates a new Text.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Spaces returns a string which consist only of the specified number of spaces.
SplitLines splits s on newline characters and returns a slice of lines.
Truncate truncates s to a maximum width.
This is based on the naive implementation found here: https://www.rosettacode.org/wiki/Word_wrap#Go TODO: properly handle ansi escape sequences when wrapping colored strings into multiple lines.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Text is a console.Renderable that produces aligned and styled text.

# Type aliases

No description provided by the author