Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeNames ¶ added in v0.1.4
func MakeNames() []string
MakeNames returns a list of possible string values of Make.
func NoZerosNames ¶ added in v0.1.4
func NoZerosNames() []string
NoZerosNames returns a list of possible string values of NoZeros.
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 // Green starts with 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 // Green starts with 33 ColorGreen Color = iota + 30 // ColorBlue is a Color of type Blue ColorBlue // ColorGrey is a Color of type Grey ColorGrey // ColorYellow is a Color of type Yellow ColorYellow // ColorBlueGreen is a Color of type Blue-Green ColorBlueGreen // ColorRedOrange is a Color of type Red-Orange ColorRedOrange )
func ParseColor ¶
ParseColor attempts to convert a string to a Color
func (*Color) MarshalText ¶
MarshalText implements the text marshaller method
func (*Color) UnmarshalText ¶
UnmarshalText implements the text unmarshaller method
type Commented ¶ added in v0.1.5
type Commented int
Commented is an enumeration of commented values
ENUM( value1 // Commented value 1 value2 value3 // Commented value 3 )
func ParseCommented ¶ added in v0.1.5
ParseCommented attempts to convert a string to a Commented
func (*Commented) MarshalText ¶ added in v0.1.5
MarshalText implements the text marshaller method
func (*Commented) UnmarshalText ¶ added in v0.1.5
UnmarshalText implements the text unmarshaller method
type ComplexCommented ¶ added in v0.1.6
type ComplexCommented int
ComplexCommented has some extra complicated parsing rules.
ENUM(
_, // Placeholder with a ',' in it. (for harder testing)
value1 // Commented value 1 value2, value3 // Commented value 3 )
const ( // ComplexCommentedValue1 is a ComplexCommented of type Value1 // Commented value 1 ComplexCommentedValue1 ComplexCommented // ComplexCommentedValue2 is a ComplexCommented of type Value2 ComplexCommentedValue2 // ComplexCommentedValue3 is a ComplexCommented of type Value3 // Commented value 3 ComplexCommentedValue3 )
func ParseComplexCommented ¶ added in v0.1.6
func ParseComplexCommented(name string) (ComplexCommented, error)
ParseComplexCommented attempts to convert a string to a ComplexCommented
func (*ComplexCommented) MarshalText ¶ added in v0.1.6
func (x *ComplexCommented) MarshalText() ([]byte, error)
MarshalText implements the text marshaller method
func (ComplexCommented) String ¶ added in v0.1.6
func (x ComplexCommented) String() string
String implements the Stringer interface.
func (*ComplexCommented) UnmarshalText ¶ added in v0.1.6
func (x *ComplexCommented) UnmarshalText(text []byte) error
UnmarshalText implements the text unmarshaller method
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
MarshalText implements the text marshaller method
func (*Make) UnmarshalText ¶ added in v0.1.3
UnmarshalText implements the text unmarshaller method
type NoZeros ¶ added in v0.1.4
type NoZeros int32
Make x ENUM(start=20,middle,end,ps,pps,ppps)
const ( // NoZerosStart is a NoZeros of type Start NoZerosStart NoZeros = iota + 20 // NoZerosMiddle is a NoZeros of type Middle NoZerosMiddle // NoZerosEnd is a NoZeros of type End NoZerosEnd // NoZerosPs is a NoZeros of type Ps NoZerosPs // NoZerosPps is a NoZeros of type Pps NoZerosPps // NoZerosPpps is a NoZeros of type Ppps NoZerosPpps )
func ParseNoZeros ¶ added in v0.1.4
ParseNoZeros attempts to convert a string to a NoZeros
func (*NoZeros) Get ¶ added in v0.1.4
func (x *NoZeros) Get() interface{}
Get implements the Golang flag.Getter interface func.
func (*NoZeros) MarshalText ¶ added in v0.1.4
MarshalText implements the text marshaller method
func (*NoZeros) UnmarshalText ¶ added in v0.1.4
UnmarshalText implements the text unmarshaller method
type ProjectStatus ¶ added in v0.1.5
type ProjectStatus int
ENUM(pending, inWork, completed, rejected)
const ( // ProjectStatusPending is a ProjectStatus of type Pending ProjectStatusPending ProjectStatus = iota // ProjectStatusInWork is a ProjectStatus of type InWork ProjectStatusInWork // ProjectStatusCompleted is a ProjectStatus of type Completed ProjectStatusCompleted // ProjectStatusRejected is a ProjectStatus of type Rejected ProjectStatusRejected )
func ParseProjectStatus ¶ added in v0.1.5
func ParseProjectStatus(name string) (ProjectStatus, error)
ParseProjectStatus attempts to convert a string to a ProjectStatus
func (*ProjectStatus) Scan ¶ added in v0.1.5
func (x *ProjectStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
func (ProjectStatus) String ¶ added in v0.1.5
func (x ProjectStatus) String() string
String implements the Stringer interface.