output

package
v0.0.0-...-06b9368 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintJson

func PrintJson(data interface{})

func PrintTable

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

func PrintYaml

func PrintYaml(data interface{})

Types

type ColumnDef

type ColumnDef struct {
	Header string
	Type   ColumnType
}

type ColumnType

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