Documentation ¶
Overview ¶
Package out provides functions for printing messages to the standard output.
Index ¶
- func Err(format string, a ...interface{})
- func Info(format string, a ...interface{})
- func Success(format string, a ...interface{})
- func Table(header []string, rows [][]string, footer []string, opts ...TableOption)
- func TableFooterColor(colors ...tablewriter.Colors) func(*tablewriter.Table)
- func TableWithCellMerge(mergeByIndex int) func(*tablewriter.Table)
- func Warn(format string, a ...interface{})
- type TableOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Err ¶
func Err(format string, a ...interface{})
Err prints a colored, formatted error message prefixed with an emoji.
func Info ¶
func Info(format string, a ...interface{})
Info prints a colored, formatted info message prefixed with an emoji.
func Success ¶
func Success(format string, a ...interface{})
Success prints a colored, formatted success message prefixed with an emoji.
func Table ¶
func Table(header []string, rows [][]string, footer []string, opts ...TableOption)
Table renders a table with the given rows to the standard output.
func TableFooterColor ¶ added in v0.11.0
func TableFooterColor(colors ...tablewriter.Colors) func(*tablewriter.Table)
TableFooterColor adds colors to the tablewriter.Footer
func TableWithCellMerge ¶ added in v0.11.0
func TableWithCellMerge(mergeByIndex int) func(*tablewriter.Table)
TableWithCellMerge apply tablewriter.SetAuthMergeCellsByColumnIndex to the table instance and enables tablewriter.SetRowLine. Allows to group rows by a column index
Types ¶
type TableOption ¶ added in v0.11.0
type TableOption func(*tablewriter.Table)
TableOptions allows to modify the table instance with different functionalities