Documentation
¶
Index ¶
- Constants
- Variables
- func Action(level Level, msg string, slow bool)
- func CleanUp()
- func DashedLine(fromCol int)
- func Error(err error)
- func HideCursor()
- func IsInteractive() bool
- func Line(level Level, msg string, slow bool)
- func Print(cs []color.Attribute, slow bool, text string)
- func PrintF(cs []color.Attribute, slow bool, format string, a ...any)
- func RestorePos()
- func Result(ok bool)
- func SavePos()
- func SetNoColor(forceNoColor bool)
- func ShowCursor()
- func SpinnerStyles() []string
- func SpinnerStylesString() string
- func TableTile(title string)
- type Level
- type Progress
Constants ¶
View Source
const ( Slow bool = true Fast bool = false )
Variables ¶
View Source
var ( White = []color.Attribute{color.FgHiWhite} Gray = []color.Attribute{color.FgWhite} Blue = []color.Attribute{color.FgHiBlue} Green = []color.Attribute{color.FgHiGreen} DarkGreen = []color.Attribute{color.FgGreen} Red = []color.Attribute{color.FgHiRed} Yellow = []color.Attribute{color.FgHiYellow} Magenta = []color.Attribute{color.FgHiMagenta} Pink = []color.Attribute{color.FgHiMagenta} Cyan = []color.Attribute{color.FgCyan} RedLabel = []color.Attribute{color.BgHiRed, color.FgHiWhite} GreenLabel = []color.Attribute{color.BgHiGreen, color.FgHiWhite} CyanLabel = []color.Attribute{color.BgCyan, color.FgHiBlack} )
Functions ¶
func DashedLine ¶
func DashedLine(fromCol int)
func HideCursor ¶
func HideCursor()
func IsInteractive ¶
func IsInteractive() bool
func RestorePos ¶
func RestorePos()
func SetNoColor ¶
func SetNoColor(forceNoColor bool)
func ShowCursor ¶
func ShowCursor()
func SpinnerStyles ¶
func SpinnerStyles() []string
func SpinnerStylesString ¶
func SpinnerStylesString() string
Types ¶
Click to show internal directories.
Click to hide internal directories.