output

package
v1.75.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Output

type Output int

Output represents the output format.

const (
	// TextOutput means output will be in text format. This is the default value.
	TextOutput Output = iota
	// JSONOutput means output will be in JSON format.
	JSONOutput
	// RawJSONOutput means output will be in raw JSON format.
	RawJSONOutput
)

func Parse

func Parse(s string) (Output, error)

Parse parses an output from a string.

func (Output) String

func (o Output) String() string

String returns the string representation of an output.

Jump to

Keyboard shortcuts

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