output

package
v0.0.40 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(w io.Writer, format Format, data any) error

Print writes data to w in the specified format. For FormatHuman, data is printed using fmt.Fprintf with %+v. For FormatJSON, encoding/json with indentation is used. For FormatYAML, gopkg.in/yaml.v3 is used.

Types

type Format

type Format string

Format represents an output format.

const (
	FormatHuman Format = "human"
	FormatJSON  Format = "json"
	FormatYAML  Format = "yaml"
)

Jump to

Keyboard shortcuts

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