ktane

package
v0.0.0-...-c25bf2c Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

type Color int

Color is an enumeration of color values

ENUM( white black blue red yellow green noMore )

const (
	// ColorWhite is a Color of type White.
	ColorWhite Color = iota
	// ColorBlack is a Color of type Black.
	ColorBlack
	// ColorBlue is a Color of type Blue.
	ColorBlue
	// ColorRed is a Color of type Red.
	ColorRed
	// ColorYellow is a Color of type Yellow.
	ColorYellow
	// ColorGreen is a Color of type Green.
	ColorGreen
	// ColorNoMore is a Color of type NoMore.
	ColorNoMore
)

func ParseColor

func ParseColor(name string) (Color, error)

ParseColor attempts to convert a string to a Color

func (Color) BySysLocale

func (x Color) BySysLocale() string

func (Color) BySysLocaleForTerminal

func (x Color) BySysLocaleForTerminal() string

func (Color) IsBlack

func (x Color) IsBlack() bool

func (Color) IsBlue

func (x Color) IsBlue() bool

func (Color) IsGreen

func (x Color) IsGreen() bool

func (Color) IsNoMore

func (x Color) IsNoMore() bool

func (Color) IsRed

func (x Color) IsRed() bool

func (Color) IsWhite

func (x Color) IsWhite() bool

func (Color) IsYellow

func (x Color) IsYellow() bool

func (Color) Localized

func (x Color) Localized(languageTag language.Tag) string

func (Color) MarshalText

func (x Color) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method

func (Color) String

func (x Color) String() string

String implements the Stringer interface.

func (*Color) UnmarshalText

func (x *Color) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method

Jump to

Keyboard shortcuts

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