Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Animal ¶
type Animal int32
Animal x ENUM( Cat, Dog, Fish )
func ParseAnimal ¶
ParseAnimal attempts to convert a string to a Animal
type Color ¶
type Color int
Color is an enumeration of colors that are allowed.
ENUM(
Black, White, Red Green = 33
Blue grey= yellow blue-green red-orange )
const ( // ColorBlack is a Color of type Black ColorBlack Color = iota // ColorWhite is a Color of type White ColorWhite // ColorRed is a Color of type Red ColorRed // ColorGreen is a Color of type Green ColorGreen Color = iota + 30 // ColorBlue is a Color of type Blue ColorBlue Color = iota + 30 // ColorGrey is a Color of type Grey ColorGrey Color = iota + 30 // ColorYellow is a Color of type Yellow ColorYellow Color = iota + 30 // ColorBlueGreen is a Color of type Blue-Green ColorBlueGreen Color = iota + 30 // ColorRedOrange is a Color of type Red-Orange ColorRedOrange Color = iota + 30 )
func ParseColor ¶
ParseColor attempts to convert a string to a Color
func (*Color) MarshalText ¶
func (*Color) UnmarshalText ¶
type Make ¶ added in v0.1.3
type Make int32
Make x ENUM(Toyota,_,Chevy,_,Ford,_,Tesla,_,Hyundai,_,Nissan,_,Jaguar,_,Audi,_,BMW,_,Mercedes-Benz,_,Volkswagon)
const ( // MakeToyota is a Make of type Toyota MakeToyota Make = iota // MakeChevy is a Make of type Chevy MakeChevy // MakeFord is a Make of type Ford MakeFord // MakeTesla is a Make of type Tesla MakeTesla // MakeHyundai is a Make of type Hyundai MakeHyundai // MakeNissan is a Make of type Nissan MakeNissan // MakeJaguar is a Make of type Jaguar MakeJaguar // MakeAudi is a Make of type Audi MakeAudi // MakeBMW is a Make of type BMW MakeBMW // MakeMercedesBenz is a Make of type Mercedes-Benz MakeMercedesBenz // MakeVolkswagon is a Make of type Volkswagon MakeVolkswagon )
func (*Make) Get ¶ added in v0.1.3
func (x *Make) Get() interface{}
Get implements the Golang flag.Getter interface func
func (*Make) MarshalText ¶ added in v0.1.3
func (*Make) UnmarshalText ¶ added in v0.1.3
Click to show internal directories.
Click to hide internal directories.