output

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Green  = color.New(color.FgGreen)
	Red    = color.New(color.FgRed)
	Yellow = color.New(color.FgYellow)
	Cyan   = color.New(color.FgCyan)
	Bold   = color.New(color.Bold)
	Faint  = color.New(color.Faint)
)

Functions

func Die

func Die(format string, args ...interface{})

Die prints an error and exits.

func FormatAmount

func FormatAmount(amount string, currencyCode string) string

FormatAmount colorizes a balance amount string.

func JSON

func JSON(v interface{})

JSON prints any value as formatted JSON.

func Table

func Table(headers []string, rows [][]string)

Table prints a nicely formatted table 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