Documentation
¶
Index ¶
Constants ¶
View Source
const ( Reset = "\033[0m" Bold = "\033[1m" Red = "\033[31m" Green = "\033[32m" Yellow = "\033[33m" Blue = "\033[34m" Cyan = "\033[36m" Gray = "\033[90m" )
ANSI color and style constants.
Variables ¶
View Source
var DefaultWriter = &Writer{Out: os.Stdout}
DefaultWriter is the default Writer targeting os.Stdout.
View Source
var ErrorWriter = &Writer{Out: os.Stderr}
ErrorWriter is the default Writer targeting os.Stderr.
Functions ¶
func StartProgress ¶
func StartProgress(msg string)
StartProgress prints a working indicator message to stdout.
Types ¶
type Writer ¶
Writer wraps an io.Writer and provides styled terminal output helpers.
func (*Writer) EndProgress ¶
EndProgress prints a completion message.
func (*Writer) StartProgress ¶
StartProgress prints a working indicator message.
Click to show internal directories.
Click to hide internal directories.