color

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Enabled = true

Enabled controls whether color output is active. It defaults to true and is set to false when the --no-color flag is passed or the NO_COLOR environment variable is set (any value, including empty).

Functions

func Bold

func Bold(s string) string

Bold returns s in bold.

func BoldRed

func BoldRed(s string) string

BoldRed returns s in bold red.

func Boldf

func Boldf(format string, a ...interface{}) string

Boldf returns a bold formatted string.

func Cyan

func Cyan(s string) string

Cyan returns s colored cyan.

func Cyanf

func Cyanf(format string, a ...interface{}) string

Cyanf returns a cyan formatted string.

func Green

func Green(s string) string

Green returns s colored green.

func Greenf

func Greenf(format string, a ...interface{}) string

Greenf returns a green formatted string.

func Red

func Red(s string) string

Red returns s colored red.

func Redf

func Redf(format string, a ...interface{}) string

Redf returns a red formatted string.

func Yellow

func Yellow(s string) string

Yellow returns s colored yellow.

func Yellowf

func Yellowf(format string, a ...interface{}) string

Yellowf returns a yellow formatted string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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