Documentation
¶
Index ¶
- Constants
- Variables
- func ColorBlue(name string) string
- func ColorCyan(name string) string
- func ColorGreen(name string) string
- func ColorMagenta(name string) string
- func ColorRed(name string) string
- func ColorYellow(name string) string
- func ColoredOptions(options []string, colorizer Colorizer) string
- func EnableColor(force bool)
- func GetSize() (int, int, error)
- func IndentString(indent int) string
- func Options(options []string) string
- func PrintIndent(indent int)
- func ProcessColorizeFlag(colorize string) error
- func StyleError(name string) string
- func StyleHeading(name string) string
- func StyleName(name string) string
- func StylePath(name string) string
- func StyleTypeName(name string) string
- func StyleValue(name string) string
- type Colorizer
- type Table
- type TableStyle
- type TreePrefix
Constants ¶
View Source
const ( TopSeparatorTableStyle = 1 << iota ColumnSeparatorTableStyle RowSeparatorTableStyle BottomSeparatorTableStyle )
View Source
const IndentSpaces = 2
Variables ¶
View Source
var Colorize = false
View Source
var Indent = strings.Repeat(" ", IndentSpaces)
View Source
var Quiet bool = false
View Source
var Stderr io.Writer = os.Stderr
View Source
var Stdout io.Writer = os.Stdout
Functions ¶
func ColorGreen ¶ added in v0.1.21
func ColorMagenta ¶ added in v0.1.21
func ColorYellow ¶ added in v0.1.21
func ColoredOptions ¶
func EnableColor ¶
func EnableColor(force bool)
func IndentString ¶
func PrintIndent ¶
func PrintIndent(indent int)
func ProcessColorizeFlag ¶
func StyleError ¶ added in v0.1.21
func StyleHeading ¶ added in v0.1.21
func StyleTypeName ¶ added in v0.1.21
func StyleValue ¶ added in v0.1.21
Types ¶
type Table ¶
type Table struct { Rows [][][]string Style TableStyle MaxWidth int HeadingSeparator string RowSeparator string TopDividerSeparator string TopDivider string MiddleDividerSeparator string MiddleDivider string BottomDividerSeparator string BottomDivider string }
func (*Table) ColumnWidths ¶
type TableStyle ¶
type TableStyle uint8
type TreePrefix ¶
type TreePrefix []bool
func (TreePrefix) Print ¶
func (self TreePrefix) Print(indent int, last bool)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.