console

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Successf = color.New(color.FgHiGreen).Add(color.Bold).PrintfFunc()
	Infof    = color.New(color.FgHiBlue).PrintfFunc()
	Errorf   = color.New(color.FgHiRed).Add(color.Underline).PrintfFunc()
	Warnf    = color.New(color.FgHiYellow).Add(color.Bold).PrintfFunc()
)

Functions

func MultiSelectf

func MultiSelectf[T any](options []T, toString func(T) string, title string, args ...any) ([]int, []T, error)

func PadStrings added in v0.3.0

func PadStrings[T any](elems []T, intFn func(T) int) int

func Selectf

func Selectf[T any](options []T, toString func(T) string, title string, args ...any) (int, T, error)

func Spin

func Spin(action func(), title string, args ...any)

func YesNo

func YesNo(title string, args ...any) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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