output

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructTable

func ConstructTable(numRows int, numCols int, widths []int, rows [][]string, writer io.Writer) error

func GetColumnWidths

func GetColumnWidths(numRows int, numCols int, rows [][]string) []int

func JsonOutput

func JsonOutput(obj interface{}, writer io.Writer) error

func RawOutput added in v1.8.0

func RawOutput(obj interface{}, writer io.Writer) error

RawOutput is an output formatter whose output is similar to fmt.Print(responseString) to better display multiple-line string responses.

func TableOutput

func TableOutput(obj interface{}, writer io.Writer) error

func TableOutputForGetCommands

func TableOutputForGetCommands(obj interface{}, writer io.Writer) error

tableOutputForGetCommands formats the table output for "get" commands.

func YamlOutput

func YamlOutput(obj interface{}, writer io.Writer) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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