colors

package
v28.11.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: Apache-2.0 Imports: 2 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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