Versions in this module Expand all Collapse all v0 v0.1.0 Sep 2, 2022 Changes in this version + const BackgroundBlack + const BackgroundBlue + const BackgroundCyan + const BackgroundGreen + const BackgroundMagenta + const BackgroundRed + const BackgroundWhite + const BackgroundYellow + const Bold + const Default + const ForegroundBlack + const ForegroundBlue + const ForegroundCyan + const ForegroundGreen + const ForegroundMagenta + const ForegroundRed + const ForegroundWhite + const ForegroundYellow + const Reset + func Activate(styles ...style) string + func ApplyStyles(s string, styles ...style) string + type Printer struct + func New(w io.Writer, tty bool) *Printer + func NewFromFile(f *os.File) *Printer + func Stderr() *Printer + func Stdout() *Printer + func (p *Printer) Print(msg string, styles ...style) error + func (p *Printer) Printf(format string, argsAndStyles ...interface{}) error + func (p *Printer) Println(msg string, styles ...style) error + func (p *Printer) Styled(s string, styles ...style) string