color

package
v0.0.0-...-121fcd1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Blue

func Blue(t string) string

Blue returns text with blue color when enabled is true

func Bold

func Bold(t string) string

Bold returns text with bold text when enabled is true

func Cyan

func Cyan(t string) string

Cyan returns text with cyan color when enabled is true

func EnvColorDisabled

func EnvColorDisabled() bool

EnvColorDisabled returns color supported boolean

func EnvColorForced

func EnvColorForced() bool

EnvColorForced returns color supported boolean

func FailureIcon

func FailureIcon() string

FailureIcon returns a special character with red color

func Gray

func Gray(t string) string

Gray returns text with gray color when enabled is true

func Green

func Green(t string) string

Green returns text with green color when enabled is true

func Is256ColorSupported

func Is256ColorSupported() bool

Is256ColorSupported returns color supported boolean

func Magenta

func Magenta(t string) string

Magenta returns text with magenta color when enabled is true

func Red

func Red(t string) string

Red returns text with red color when enabled is true

func SuccessIcon

func SuccessIcon() string

SuccessIcon returns a special character with green color

func WarningIcon

func WarningIcon() string

WarningIcon returns a special character with yello color

func Yellow

func Yellow(t string) string

Yellow returns text with yellow color when enabled is true

Types

This section is empty.

Jump to

Keyboard shortcuts

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