ui

package
v0.1.1-beta Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Success = color.New(color.FgGreen).SprintFunc()
	Error   = color.New(color.FgRed).SprintFunc()
	Warn    = color.New(color.FgYellow).SprintFunc()
	Muted   = color.New(color.Faint).SprintFunc()
	Bold    = color.New(color.Bold).SprintFunc()
	ID      = color.New(color.FgCyan).SprintFunc()
)

Functions

func Errorf

func Errorf(format string, a ...interface{})

Errorf prints a red error message to stderr

func Headerf

func Headerf(format string, a ...interface{})

Headerf prints a bold header to stderr

func Infof

func Infof(format string, a ...interface{})

Infof prints a muted info message to stderr

func NewSpinner

func NewSpinner(msg string) *spinner.Spinner

NewSpinner creates a spinner with a message. Call .Start() and .Stop().

func Successf

func Successf(format string, a ...interface{})

Successf prints a green success message to stderr

func Warnf

func Warnf(format string, a ...interface{})

Warnf prints a yellow warning message to stderr

Types

This section is empty.

Jump to

Keyboard shortcuts

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