outputtools

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocale

func GetLocale() string

func PrintlnColored

func PrintlnColored(text string, color OutputColor)

func PrintlnColoredErr added in v1.0.0

func PrintlnColoredErr(text string, color OutputColor)

PrintlnColoredErr writes a colored line to stderr. Use it for progress/status messages so that stdout stays clean for machine-readable (--json) output.

Types

type OutputColor

type OutputColor int32
const (
	Reset   OutputColor = 0
	Red     OutputColor = 31
	Green   OutputColor = 32
	Yellow  OutputColor = 33
	Blue    OutputColor = 34
	Magenta OutputColor = 35
	Cyan    OutputColor = 36
	Gray    OutputColor = 37
	White   OutputColor = 97
)

Jump to

Keyboard shortcuts

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