output

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintJson added in v0.4.0

func PrintJson(data interface{})

func PrintTable

func PrintTable(columnDefs []ColumnDef, data [][]string, sortByHeaders ...string)

func PrintYaml

func PrintYaml(data interface{})

Types

type ColumnDef added in v0.3.0

type ColumnDef struct {
	Header string
	Type   ColumnType
}

type ColumnType added in v0.3.0

type ColumnType int
const (
	Text ColumnType = iota
	Number
	Percent
	DataSize
	Date
)

Jump to

Keyboard shortcuts

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