color

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownColor = errors.New("unknown Color")

Functions

This section is empty.

Types

type Color

type Color uint8
const (
	UndefinedColor Color = iota
	Red
	Green
	Blue
)

func (Color) MarshalText

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

func (Color) String

func (s Color) String() string

func (*Color) UnmarshalText

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

type V

type V struct {
	Color Color `json:"color"`
}

Jump to

Keyboard shortcuts

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