render

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package render switches command output between human-readable and JSON.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auto

func Auto(asJSON bool, jsonFn func() error, humanFn func() error) error

Auto runs jsonFn when asJSON is true, otherwise humanFn. Either may be nil.

func JSON

func JSON(v any) error

JSON prints v as indented JSON to stdout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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