Documentation
¶
Index ¶
- type Color
- func (x Color) BySysLocale() string
- func (x Color) BySysLocaleForTerminal() string
- func (x Color) IsBlack() bool
- func (x Color) IsBlue() bool
- func (x Color) IsGreen() bool
- func (x Color) IsNoMore() bool
- func (x Color) IsRed() bool
- func (x Color) IsWhite() bool
- func (x Color) IsYellow() bool
- func (x Color) Localized(languageTag language.Tag) string
- func (x Color) MarshalText() ([]byte, error)
- func (x Color) String() string
- func (x *Color) UnmarshalText(text []byte) error
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 ¶
ParseColor attempts to convert a string to a Color
func (Color) BySysLocale ¶
func (Color) BySysLocaleForTerminal ¶
func (Color) MarshalText ¶
MarshalText implements the text marshaller method
func (*Color) UnmarshalText ¶
UnmarshalText implements the text unmarshaller method
Click to show internal directories.
Click to hide internal directories.