out

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package out provides helpers for writing human-readable or JSON output to an io.Writer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(format string, args ...any)

Print writes a human-readable message to stdout.

func PrintJSON

func PrintJSON(w io.Writer, v any) error

PrintJSON marshals v to indented JSON and writes it to w.

func Println

func Println(s string)

Println writes a human-readable line to stdout.

func Sep

func Sep(n int)

Sep prints a separator line of n dashes to stdout.

func WriteError

func WriteError(w io.Writer, asJSON bool, err error) error

WriteError writes err to w; if asJSON is true it uses a JSON envelope.

Types

This section is empty.

Jump to

Keyboard shortcuts

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