colors

package
v30.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Yellow  = "#c4a000"
	Red     = "#ef2929"
	Green   = "#4e9a06"
	Magenta = "#75507b"
	Cyan    = "#34e2e2"
	White   = "#FFFFFF"
	HiBlue  = "#729FCF"
	Blue    = "#0a2fc4"
)

Variables

This section is empty.

Functions

func Error

func Error(i ...any) string

func Faint

func Faint(i ...any) string

Faint styles the text using a dimmer shade for the foreground color.

func Info

func Info(i ...any) string

func Infof

func Infof(format string, i ...any) string

func Mnemonic

func Mnemonic(i ...any) string

func Modified

func Modified(i ...any) string

func Name

func Name(i ...any) string

func Spinner

func Spinner(i ...any) string

func SprintFunc

func SprintFunc(color string) func(i ...any) string

SprintFunc returns a function to apply a foreground color to any number of texts. The returned function receives strings as arguments with the text that should be colorized. Color specifies a color by hex or ANSI value.

func Success

func Success(i ...any) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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