Versions in this module Expand all Collapse all v2 v2.0.1 Oct 14, 2022 Changes in this version + const Bold + const Italic + const Reset + const Underline + func Ask[T optConstraint](writer Writer, question string, opts ...T) (res T, err error) + func Confirm(writer Writer, question string) bool + func Password(writer Writer, prompt string, valid func(string) error) (string, error) + type Color int + const Background + const Black + const Blue + const Bright + const Cyan + const Green + const Magenta + const Red + const White + const Yellow + type Column struct + Index int + Name string + Width int + type Displayable interface + Columns func() []string + Values func() map[string]interface{} + type Progress struct + func NewProgress(message string) *Progress + func (p *Progress) Display(out Writer) + func (p *Progress) Done() + type Table struct + Columns []*Column + Rows [][]string + func (t *Table) FindColumn(name string) *Column + func (t *Table) Format(out Writer, separator string, pretty bool) + func (t *Table) Insert(val interface{}) error + type Writer interface + Bold func() Writer + Color func(color Color) Writer + Errorf func(format string, a ...interface{}) Writer + Print func(a ...interface{}) Writer + Printf func(format string, a ...interface{}) Writer + Println func(a ...interface{}) Writer + Reset func() Writer + func NewConsoleOutput(file *os.File) Writer