colors

package
v29.0.0-...-236f8a0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 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"
)

Variables

This section is empty.

Functions

func Error

func Error(i ...interface{}) string

func Faint

func Faint(i ...interface{}) string

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

func Info

func Info(i ...interface{}) string

func Infof

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

func Mnemonic

func Mnemonic(i ...interface{}) string

func Modified

func Modified(i ...interface{}) string

func Name

func Name(i ...interface{}) string

func SprintFunc

func SprintFunc(color string) func(i ...interface{}) 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 ...interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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