colors

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

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 added in v0.25.0

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

func Faint added in v0.26.0

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 added in v0.25.0

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

func Mnemonic added in v0.26.0

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

func Modified added in v0.25.0

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

func Name added in v0.26.0

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

func SprintFunc added in v0.25.0

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 added in v0.25.0

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