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 )
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 )
func ParseColor ¶
ParseColor attempts to convert a string to a Color
func (*Color) MarshalText ¶
func (*Color) UnmarshalText ¶
type Model ¶
type Model int32
Model x ENUM(Toyota,_,Chevy,_,Ford,_,Tesla,_,Hyundai,_,Nissan,_,Jaguar,_,Audi,_,BMW,_,Mercedes,_,Volkswagon)
const ( // ModelToyota is a Model of type Toyota ModelToyota Model = iota // ModelChevy is a Model of type Chevy ModelChevy // ModelFord is a Model of type Ford ModelFord // ModelTesla is a Model of type Tesla ModelTesla // ModelHyundai is a Model of type Hyundai ModelHyundai // ModelNissan is a Model of type Nissan ModelNissan // ModelJaguar is a Model of type Jaguar ModelJaguar // ModelAudi is a Model of type Audi ModelAudi // ModelBMW is a Model of type BMW ModelBMW // ModelMercedes is a Model of type Mercedes ModelMercedes // ModelVolkswagon is a Model of type Volkswagon ModelVolkswagon )
func ParseModel ¶
ParseModel attempts to convert a string to a Model
func (*Model) MarshalText ¶
func (*Model) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.