Documentation
¶
Index ¶
- Constants
- type Colorizer
- func (c *Colorizer) Blue(text string) string
- func (c *Colorizer) Color(text, colorCode string) string
- func (c *Colorizer) Gray(text string) string
- func (c *Colorizer) Green(text string) string
- func (c *Colorizer) IsEnabled() bool
- func (c *Colorizer) Red(text string) string
- func (c *Colorizer) Yellow(text string) string
- type Formatter
Constants ¶
View Source
const ( Reset = "\033[0m" Red = "\033[31m" Green = "\033[32m" Yellow = "\033[33m" Blue = "\033[34m" Gray = "\033[90m" )
Color codes for terminal output
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Colorizer ¶
type Colorizer struct {
// contains filtered or unexported fields
}
Colorizer handles color output
func NewColorizer ¶
NewColorizer creates a new colorizer based on the color setting
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
Formatter handles output formatting
func NewFormatter ¶
NewFormatter creates a new output formatter
func (*Formatter) FormatMessage ¶
FormatMessage formats a generic message
Click to show internal directories.
Click to hide internal directories.