output

package
v1.0.38 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package output provides shared output utilities for formatting and printing data to various destinations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON

func JSON(w io.Writer, data any) error

JSON encodes data as indented JSON to the given writer.

func JSONStdout

func JSONStdout(data any) error

JSONStdout encodes data as indented JSON to stdout. This is a convenience function that wraps JSON(os.Stdout, data).

Types

This section is empty.

Jump to

Keyboard shortcuts

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