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

Overview

Code generated by go-enum-encoding DO NOT EDIT

Index

Constants

This section is empty.

Variables

View Source
var (
	UndefinedColor = Color{}            // json:""
	Red            = Color{1}           // json:"red"
	Green          = Color{2}           // json:"green"
	Blue           = Color{3}           // json:"blue"
	Purple, Orange = Color{4}, Color{5} // json:"blue"
)
View Source
var ErrUnknownColor = errors.New("unknown Color")

Functions

This section is empty.

Types

type Color

type Color struct {
	// contains filtered or unexported fields
}

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