Documentation ¶
Overview ¶
Package term implements a unified way to present output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Blue = color.New(color.FgHiBlue) Red = color.New(color.FgHiRed) Cyan = color.New(color.FgHiCyan) Green = color.New(color.FgHiGreen) Black = color.New(color.FgHiBlack) Yellow = color.New(color.FgHiYellow) White = color.New(color.FgHiWhite) )
Predefined colors for use with Coloured.
Functions ¶
This section is empty.
Types ¶
type Basic ¶
Basic writes messages to a writer. If an error writer is provided it is used for error messages.
type Colored ¶
type Colored struct { OutputColor *color.Color InfoColor *color.Color WarningColor *color.Color ErrorColor *color.Color Term Term }
Colored writer coloured messages to the underlying term.
Click to show internal directories.
Click to hide internal directories.