output

package
v1.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Format = "table" // "table" or "json"

Functions

func IsJSON added in v1.0.2

func IsJSON() bool

func PrintJSON

func PrintJSON(data interface{})

func PrintJSONBytes added in v1.0.2

func PrintJSONBytes(raw []byte)

func PrintRawJSON

func PrintRawJSON(raw json.RawMessage)

func PrintTable

func PrintTable(headers []string, rows [][]string)

func Truncate

func Truncate(s string, max int) string

func ValueOrDash

func ValueOrDash(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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