const COLS = 80
var ColorableStdErr = newColorable(os.Stderr)
ColorableStdOut and ColorableStdErr enable color output support on Windows
var ColorableStdOut = newColorable(os.Stdout)
var SingletonFormatter = New(ColorModeTerminal)
func F(format string, args ...interface{}) string
func Fi(indentation uint, format string, args ...interface{}) string
func Fiw(indentation uint, maxWidth uint, format string, args ...interface{}) string
type ColorMode uint8
const ( ColorModeNone ColorMode = iota ColorModeTerminal ColorModePassthrough )
type Formatter struct { ColorMode ColorMode // contains filtered or unexported fields }
func New(colorMode ColorMode) Formatter
func NewWithNoColorBool(noColor bool) Formatter
func (f Formatter) CycleJoin(elements []string, joiner string, cycle []string) string
func (f Formatter) F(format string, args ...interface{}) string
func (f Formatter) Fi(indentation uint, format string, args ...interface{}) string
func (f Formatter) Fiw(indentation uint, maxWidth uint, format string, args ...interface{}) string