output

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowJSON

func ShowJSON(options StOutOptions) error

func ShowYAML

func ShowYAML(options StOutOptions) error

Types

type Options

type Options struct {
	OutputType   string
	Data         [][]string
	Filename     string
	SaveInDisk   bool
	TableHeaders []string
}

type StOutOptions

type StOutOptions struct {
	Filename   string
	SaveInDisk bool
	Data       interface{}
}

type TerminalOutput

type TerminalOutput struct {
	// contains filtered or unexported fields
}

func (*TerminalOutput) Show

func (t *TerminalOutput) Show(options Options) error

type TerminalOutputWriter

type TerminalOutputWriter interface {
	Show(options Options) error
}

Jump to

Keyboard shortcuts

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