output

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DateTimeFormat = "Jan 2, 2006 at 15:04"

DateTimeFormat is the standard human-friendly date format for CLI output.

Variables

This section is empty.

Functions

func Blank

func Blank()

Blank writes a single blank line to stdout.

func ErrorWriter

func ErrorWriter() io.Writer

ErrorWriter returns the stderr writer for error output.

func FormatVersion

func FormatVersion(version string) string

FormatVersion normalizes a version string with a single leading 'v'.

func NewTableWriter

func NewTableWriter() *tabwriter.Writer

NewTableWriter returns a tabwriter for stdout with consistent spacing.

func Printf

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

Printf writes formatted output to stdout.

func Println

func Println(args ...any)

Println writes a line to stdout.

func SetWriters

func SetWriters(stdout, stderr io.Writer)

SetWriters overrides the output writers (useful for tests).

func Writer

func Writer() io.Writer

Writer returns the shared stdout writer for user-facing output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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