output

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsUsage

func IsUsage(err error) bool

func Write

func Write(w io.Writer, format Format, label string, value any) error

Types

type Format

type Format string
const (
	Text Format = "text"
	JSON Format = "json"
	Log  Format = "log"
)

func Resolve

func Resolve(format string, jsonFlag bool) (Format, error)

type UsageError

type UsageError struct {
	Err error
}

func (UsageError) Error

func (e UsageError) Error() string

func (UsageError) Unwrap

func (e UsageError) Unwrap() error

Jump to

Keyboard shortcuts

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