Discover Packages
github.com/aws-cloudformation/rain
console
text
package
Version:
v0.10.1
Opens a new window with list of versions in this module.
Published: Oct 21, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package text defines the Text type that is used to represent blocks of
ANSI formatted text. The package also defines generated helper functions
for creating different coloured blocks of text.
A Text represents a string and a colour.
Blue returns a Text struct that wraps the supplied text in ANSI colour
Bold returns a Text struct that wraps the supplied text in ANSI colour
Green returns a Text struct that wraps the supplied text in ANSI colour
Grey returns a Text struct that wraps the supplied text in ANSI colour
Orange returns a Text struct that wraps the supplied text in ANSI colour
Plain returns a Text struct that always returns the supplied text, unformatted
Red returns a Text struct that wraps the supplied text in ANSI colour
White returns a Text struct that wraps the supplied text in ANSI colour
Yellow returns a Text struct that wraps the supplied text in ANSI colour
Format returns the Text as a formatted string
Len returns the length of the text
Plain returns the unformatted text
String returns a formatted (if supported) string of the Text
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.