output

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package output provides utilities for formatting CLI output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteJSON

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

WriteJSON writes indented JSON to w.

Types

type Table

type Table struct {
	Headers []string
	Rows    [][]string
}

Table renders a padded-column table to an io.Writer.

func (*Table) Render

func (t *Table) Render(w io.Writer)

Render writes the table to w with padded columns.

Jump to

Keyboard shortcuts

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