output

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNoColor

func IsNoColor() bool

IsNoColor returns true when the NO_COLOR environment variable is set.

func Print

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

Print formats data to the given writer in the specified format, optionally filtering fields. data: any JSON-serializable value (struct, map, slice). format: "json" | "table" | "csv". fields: comma-separated field names to include (empty string means all fields).

func PrintError

func PrintError(w io.Writer, err error) error

PrintError writes a structured JSON error to the given writer. For *meta.GraphError: includes message, code, subcode, and trace_id. For other errors: includes message only.

Types

This section is empty.

Jump to

Keyboard shortcuts

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