out

package
v0.14.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package out provides functions for printing messages to the standard output.

Index

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

func Warn

func Warn(format string, a ...interface{})

Warn prints a colored, formatted warning message prefixed with an emoji.

Types

type TableOption added in v0.11.0

type TableOption func(*tablewriter.Table)

TableOptions allows to modify the table instance with different functionalities

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL