Documentation ¶
Index ¶
- Variables
- func Enum32bitNames() []string
- func Enum64bitNames() []string
- func GreekGodNames() []string
- func IntShopNames() []string
- func MakeNames() []string
- func NoZerosNames() []string
- func ParseOceanColorExample() bool
- func ParseOceanColorGlobbedExample() bool
- func ParseOceanColorGlobbedExample2() bool
- func ShopNames() []string
- func StrStateNames() []string
- type AllNegative
- type Animal
- type Color
- type Commented
- type ComplexCommented
- type Enum32bit
- type Enum64bit
- type ForceLowerType
- type GreekGod
- type ImageType
- type IntShop
- type JobState
- type Make
- type NoZeros
- type NullGreekGod
- type NullImageType
- type NullJobState
- type NullProjectStatus
- type NullProjectStatusStr
- type NullStrState
- type OceanColor
- type Product
- type ProjectStatus
- func (x ProjectStatus) MarshalText() ([]byte, error)
- func (x ProjectStatus) Ptr() *ProjectStatus
- func (x *ProjectStatus) Scan(value interface{}) (err error)
- func (x ProjectStatus) String() string
- func (x *ProjectStatus) UnmarshalText(text []byte) error
- func (x ProjectStatus) Value() (driver.Value, error)
- type Shop
- type Status
- type StrState
- func (x *StrState) Get() interface{}
- func (x StrState) IsValid() bool
- func (x StrState) MarshalText() ([]byte, error)
- func (x StrState) Ptr() *StrState
- func (x *StrState) Scan(value interface{}) (err error)
- func (x *StrState) Set(val string) error
- func (x StrState) String() string
- func (x *StrState) Type() string
- func (x *StrState) UnmarshalText(text []byte) error
- func (x StrState) Value() (driver.Value, error)
- type X
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidAllNegative = errors.New("not a valid AllNegative")
var ErrInvalidAnimal = errors.New("not a valid Animal")
var ErrInvalidColor = errors.New("not a valid Color")
var ErrInvalidCommented = errors.New("not a valid Commented")
var ErrInvalidComplexCommented = errors.New("not a valid ComplexCommented")
var ErrInvalidEnum32bit = fmt.Errorf("not a valid Enum32bit, try [%s]", strings.Join(_Enum32bitNames, ", "))
var ErrInvalidEnum64bit = fmt.Errorf("not a valid Enum64bit, try [%s]", strings.Join(_Enum64bitNames, ", "))
var ErrInvalidForceLowerType = errors.New("not a valid ForceLowerType")
var ErrInvalidGreekGod = fmt.Errorf("not a valid GreekGod, try [%s]", strings.Join(_GreekGodNames, ", "))
var ErrInvalidImageType = errors.New("not a valid ImageType")
var ErrInvalidIntShop = fmt.Errorf("not a valid IntShop, try [%s]", strings.Join(_IntShopNames, ", "))
var ErrInvalidJobState = errors.New("not a valid JobState")
var ErrInvalidMake = fmt.Errorf("not a valid Make, try [%s]", strings.Join(_MakeNames, ", "))
var ErrInvalidNoZeros = fmt.Errorf("not a valid NoZeros, try [%s]", strings.Join(_NoZerosNames, ", "))
var ErrInvalidOceanColor = errors.New("not a valid OceanColor")
var ErrInvalidProduct = errors.New("not a valid Product")
var ErrInvalidProjectStatus = errors.New("not a valid ProjectStatus")
var ErrInvalidShop = fmt.Errorf("not a valid Shop, try [%s]", strings.Join(_ShopNames, ", "))
var ErrInvalidStatus = errors.New("not a valid Status")
var ErrInvalidStrState = fmt.Errorf("not a valid StrState, try [%s]", strings.Join(_StrStateNames, ", "))
Functions ¶
func Enum32bitNames ¶
func Enum32bitNames() []string
Enum32bitNames returns a list of possible string values of Enum32bit.
func Enum64bitNames ¶
func Enum64bitNames() []string
Enum64bitNames returns a list of possible string values of Enum64bit.
func GreekGodNames ¶
func GreekGodNames() []string
GreekGodNames returns a list of possible string values of GreekGod.
func IntShopNames ¶
func IntShopNames() []string
IntShopNames returns a list of possible string values of IntShop.
func MakeNames ¶
func MakeNames() []string
MakeNames returns a list of possible string values of Make.
func NoZerosNames ¶
func NoZerosNames() []string
NoZerosNames returns a list of possible string values of NoZeros.
func ParseOceanColorGlobbedExample ¶
func ParseOceanColorGlobbedExample() bool
func ParseOceanColorGlobbedExample2 ¶
func ParseOceanColorGlobbedExample2() bool
func ShopNames ¶
func ShopNames() []string
ShopNames returns a list of possible string values of Shop.
func StrStateNames ¶
func StrStateNames() []string
StrStateNames returns a list of possible string values of StrState.
Types ¶
type AllNegative ¶
type AllNegative int
ENUM( Unknown = -5, Good, Bad, Ugly ).
const ( // AllNegativeUnknown is a AllNegative of type Unknown. AllNegativeUnknown AllNegative = iota + -5 // AllNegativeGood is a AllNegative of type Good. AllNegativeGood // AllNegativeBad is a AllNegative of type Bad. AllNegativeBad // AllNegativeUgly is a AllNegative of type Ugly. AllNegativeUgly )
func ParseAllNegative ¶
func ParseAllNegative(name string) (AllNegative, error)
ParseAllNegative attempts to convert a string to a AllNegative.
func (AllNegative) String ¶
func (x AllNegative) String() string
String implements the Stringer interface.
type Animal ¶
type Animal int32
Animal x ENUM( Cat, Dog, Fish Fish++ Fish# ).
const ( // AnimalCat is a Animal of type Cat. AnimalCat Animal = iota // AnimalDog is a Animal of type Dog. AnimalDog // AnimalFish is a Animal of type Fish. AnimalFish // AnimalFishPlusPlus is a Animal of type Fish++. AnimalFishPlusPlus // AnimalFishSharp is a Animal of type Fish#. AnimalFishSharp )
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 yellow_green red-orange-blue )
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 // ColorYellowGreen is a Color of type Yellow_green. ColorYellowGreen // ColorRedOrangeBlue is a Color of type Red-Orange-Blue. ColorRedOrangeBlue )
func MustParseColor ¶
MustParseColor converts a string to a Color, and panics if is not valid.
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 ¶
type Commented int
Commented is an enumeration of commented values
ENUM( value1 // Commented value 1 value2 value3 // Commented value 3 )
func ParseCommented ¶
ParseCommented attempts to convert a string to a Commented.
func (Commented) MarshalText ¶
MarshalText implements the text marshaller method.
func (*Commented) UnmarshalText ¶
UnmarshalText implements the text unmarshaller method.
type ComplexCommented ¶
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 ¶
func ParseComplexCommented(name string) (ComplexCommented, error)
ParseComplexCommented attempts to convert a string to a ComplexCommented.
func (ComplexCommented) MarshalText ¶
func (x ComplexCommented) MarshalText() ([]byte, error)
MarshalText implements the text marshaller method.
func (ComplexCommented) String ¶
func (x ComplexCommented) String() string
String implements the Stringer interface.
func (*ComplexCommented) UnmarshalText ¶
func (x *ComplexCommented) UnmarshalText(text []byte) error
UnmarshalText implements the text unmarshaller method.
type Enum32bit ¶
type Enum32bit uint32
ENUM(
Unkno = 0 E2P15 = 32768 E2P16 = 65536 E2P17 = 131072 E2P18 = 262144 E2P19 = 524288 E2P20 = 1048576 E2P21 = 2097152 E2P22 = 33554432 E2P23 = 67108864 E2P28 = 536870912 E2P30 = 1073741824
)
const ( // Enum32bitUnkno is a Enum32bit of type Unkno. Enum32bitUnkno Enum32bit = iota // Enum32bitE2P15 is a Enum32bit of type E2P15. Enum32bitE2P15 Enum32bit = iota + 32767 // Enum32bitE2P16 is a Enum32bit of type E2P16. Enum32bitE2P16 Enum32bit = iota + 65534 // Enum32bitE2P17 is a Enum32bit of type E2P17. Enum32bitE2P17 Enum32bit = iota + 131069 // Enum32bitE2P18 is a Enum32bit of type E2P18. Enum32bitE2P18 Enum32bit = iota + 262140 // Enum32bitE2P19 is a Enum32bit of type E2P19. Enum32bitE2P19 Enum32bit = iota + 524283 // Enum32bitE2P20 is a Enum32bit of type E2P20. Enum32bitE2P20 Enum32bit = iota + 1048570 // Enum32bitE2P21 is a Enum32bit of type E2P21. Enum32bitE2P21 Enum32bit = iota + 2097145 // Enum32bitE2P22 is a Enum32bit of type E2P22. Enum32bitE2P22 Enum32bit = iota + 33554424 // Enum32bitE2P23 is a Enum32bit of type E2P23. Enum32bitE2P23 Enum32bit = iota + 67108855 // Enum32bitE2P28 is a Enum32bit of type E2P28. Enum32bitE2P28 Enum32bit = iota + 536870902 // Enum32bitE2P30 is a Enum32bit of type E2P30. Enum32bitE2P30 Enum32bit = iota + 1073741813 )
func ParseEnum32bit ¶
ParseEnum32bit attempts to convert a string to a Enum32bit.
type Enum64bit ¶
type Enum64bit uint64
ENUM( Unkno = 0 E2P15 = 32768 E2P16 = 65536 E2P17 = 131072 E2P18 = 262144 E2P19 = 524288 E2P20 = 1048576 E2P21 = 2097152 E2P22 = 33554432 E2P23 = 67108864 E2P28 = 536870912 E2P30 = 1073741824 E2P31 = 2147483648 E2P32 = 4294967296 E2P33 = 8454967296 E2P63 = 18446744073709551615 )
const ( // Enum64bitUnkno is a Enum64bit of type Unkno. Enum64bitUnkno Enum64bit = iota // Enum64bitE2P15 is a Enum64bit of type E2P15. Enum64bitE2P15 Enum64bit = iota + 32767 // Enum64bitE2P16 is a Enum64bit of type E2P16. Enum64bitE2P16 Enum64bit = iota + 65534 // Enum64bitE2P17 is a Enum64bit of type E2P17. Enum64bitE2P17 Enum64bit = iota + 131069 // Enum64bitE2P18 is a Enum64bit of type E2P18. Enum64bitE2P18 Enum64bit = iota + 262140 // Enum64bitE2P19 is a Enum64bit of type E2P19. Enum64bitE2P19 Enum64bit = iota + 524283 // Enum64bitE2P20 is a Enum64bit of type E2P20. Enum64bitE2P20 Enum64bit = iota + 1048570 // Enum64bitE2P21 is a Enum64bit of type E2P21. Enum64bitE2P21 Enum64bit = iota + 2097145 // Enum64bitE2P22 is a Enum64bit of type E2P22. Enum64bitE2P22 Enum64bit = iota + 33554424 // Enum64bitE2P23 is a Enum64bit of type E2P23. Enum64bitE2P23 Enum64bit = iota + 67108855 // Enum64bitE2P28 is a Enum64bit of type E2P28. Enum64bitE2P28 Enum64bit = iota + 536870902 // Enum64bitE2P30 is a Enum64bit of type E2P30. Enum64bitE2P30 Enum64bit = iota + 1073741813 // Enum64bitE2P31 is a Enum64bit of type E2P31. Enum64bitE2P31 Enum64bit = iota + 2147483636 // Enum64bitE2P32 is a Enum64bit of type E2P32. Enum64bitE2P32 Enum64bit = iota + 4294967283 // Enum64bitE2P33 is a Enum64bit of type E2P33. Enum64bitE2P33 Enum64bit = iota + 8454967282 // Enum64bitE2P63 is a Enum64bit of type E2P63. Enum64bitE2P63 Enum64bit = iota + 18446744073709551600 )
func ParseEnum64bit ¶
ParseEnum64bit attempts to convert a string to a Enum64bit.
type ForceLowerType ¶
type ForceLowerType int
ENUM( DataSwap, BootNode, )
const ( // ForceLowerTypeDataSwap is a ForceLowerType of type DataSwap. ForceLowerTypeDataSwap ForceLowerType = iota // ForceLowerTypeBootNode is a ForceLowerType of type BootNode. ForceLowerTypeBootNode )
func ParseForceLowerType ¶
func ParseForceLowerType(name string) (ForceLowerType, error)
ParseForceLowerType attempts to convert a string to a ForceLowerType.
func (ForceLowerType) String ¶
func (x ForceLowerType) String() string
String implements the Stringer interface.
type GreekGod ¶
type GreekGod string
ENUM(_,zeus, apollo, athena=20, ares)
const ( // GreekGodZeus is a GreekGod of type zeus. GreekGodZeus GreekGod = "zeus" // GreekGodApollo is a GreekGod of type apollo. GreekGodApollo GreekGod = "apollo" // GreekGodAthena is a GreekGod of type athena. GreekGodAthena GreekGod = "athena" // GreekGodAres is a GreekGod of type ares. GreekGodAres GreekGod = "ares" )
func ParseGreekGod ¶
ParseGreekGod attempts to convert a string to a GreekGod.
type ImageType ¶
type ImageType int
ENUM(jpeg, jpg, png, tiff, gif)
const ( // ImageTypeJpeg is a ImageType of type Jpeg. ImageTypeJpeg ImageType = iota // ImageTypeJpg is a ImageType of type Jpg. ImageTypeJpg // ImageTypePng is a ImageType of type Png. ImageTypePng // ImageTypeTiff is a ImageType of type Tiff. ImageTypeTiff // ImageTypeGif is a ImageType of type Gif. ImageTypeGif )
func ParseImageType ¶
ParseImageType attempts to convert a string to a ImageType.
type IntShop ¶
type IntShop int
Shops ENUM( SOME_PLACE_AWESOME, SomewhereElse, LocationUnknown )
func ParseIntShop ¶
ParseIntShop attempts to convert a string to a IntShop.
func (IntShop) MarshalText ¶
MarshalText implements the text marshaller method.
func (*IntShop) UnmarshalText ¶
UnmarshalText implements the text unmarshaller method.
type JobState ¶
type JobState int
ENUM(pending, processing, completed, failed)
const ( // JobStatePending is a JobState of type Pending. JobStatePending JobState = iota // JobStateProcessing is a JobState of type Processing. JobStateProcessing // JobStateCompleted is a JobState of type Completed. JobStateCompleted // JobStateFailed is a JobState of type Failed. JobStateFailed )
func ParseJobState ¶
ParseJobState attempts to convert a string to a JobState.
type Make ¶
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 ¶
func (x *Make) Get() interface{}
Get implements the Golang flag.Getter interface func.
func (Make) MarshalText ¶
MarshalText implements the text marshaller method.
func (*Make) UnmarshalText ¶
UnmarshalText implements the text unmarshaller method.
type NoZeros ¶
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 ¶
ParseNoZeros attempts to convert a string to a NoZeros.
func (*NoZeros) Get ¶
func (x *NoZeros) Get() interface{}
Get implements the Golang flag.Getter interface func.
func (NoZeros) MarshalText ¶
MarshalText implements the text marshaller method.
func (*NoZeros) UnmarshalText ¶
UnmarshalText implements the text unmarshaller method.
type NullGreekGod ¶
func NewNullGreekGod ¶
func NewNullGreekGod(val interface{}) (x NullGreekGod)
func (*NullGreekGod) Scan ¶
func (x *NullGreekGod) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
type NullImageType ¶
func NewNullImageType ¶
func NewNullImageType(val interface{}) (x NullImageType)
func (*NullImageType) Scan ¶
func (x *NullImageType) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
type NullJobState ¶
func NewNullJobState ¶
func NewNullJobState(val interface{}) (x NullJobState)
func (*NullJobState) Scan ¶
func (x *NullJobState) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
type NullProjectStatus ¶
type NullProjectStatus struct { ProjectStatus ProjectStatus Valid bool Set bool }
func NewNullProjectStatus ¶
func NewNullProjectStatus(val interface{}) (x NullProjectStatus)
func (NullProjectStatus) MarshalJSON ¶
func (n NullProjectStatus) MarshalJSON() ([]byte, error)
MarshalJSON correctly serializes a NullProjectStatus to JSON.
func (*NullProjectStatus) Scan ¶
func (x *NullProjectStatus) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (*NullProjectStatus) UnmarshalJSON ¶
func (n *NullProjectStatus) UnmarshalJSON(b []byte) error
UnmarshalJSON correctly deserializes a NullProjectStatus from JSON.
type NullProjectStatusStr ¶
type NullProjectStatusStr struct {
NullProjectStatus
}
func NewNullProjectStatusStr ¶
func NewNullProjectStatusStr(val interface{}) (x NullProjectStatusStr)
func (NullProjectStatusStr) MarshalJSON ¶
func (n NullProjectStatusStr) MarshalJSON() ([]byte, error)
MarshalJSON correctly serializes a NullProjectStatus to JSON.
func (*NullProjectStatusStr) UnmarshalJSON ¶
func (n *NullProjectStatusStr) UnmarshalJSON(b []byte) error
UnmarshalJSON correctly deserializes a NullProjectStatus from JSON.
type NullStrState ¶
func NewNullStrState ¶
func NewNullStrState(val interface{}) (x NullStrState)
func (NullStrState) MarshalJSON ¶
func (n NullStrState) MarshalJSON() ([]byte, error)
MarshalJSON correctly serializes a NullStrState to JSON.
func (*NullStrState) Scan ¶
func (x *NullStrState) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (*NullStrState) UnmarshalJSON ¶
func (n *NullStrState) UnmarshalJSON(b []byte) error
UnmarshalJSON correctly deserializes a NullStrState from JSON.
type OceanColor ¶
type OceanColor int
OceanColor is an enumeration of ocean colors that are allowed.
ENUM( Cerulean Blue Green )
const ( // OceanColorCerulean is a OceanColor of type Cerulean. OceanColorCerulean OceanColor = iota // OceanColorBlue is a OceanColor of type Blue. OceanColorBlue // OceanColorGreen is a OceanColor of type Green. OceanColorGreen )
func ParseOceanColor ¶
func ParseOceanColor(name string) (OceanColor, error)
ParseOceanColor attempts to convert a string to a OceanColor.
func (OceanColor) String ¶
func (x OceanColor) String() string
String implements the Stringer interface.
type Product ¶
type Product int32
Products of AcmeInc ENUM( Anvil, Dynamite, Glue )
func ParseProduct ¶
ParseProduct attempts to convert a string to a Product.
type ProjectStatus ¶
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 ¶
func ParseProjectStatus(name string) (ProjectStatus, error)
ParseProjectStatus attempts to convert a string to a ProjectStatus.
func (ProjectStatus) MarshalText ¶
func (x ProjectStatus) MarshalText() ([]byte, error)
MarshalText implements the text marshaller method.
func (ProjectStatus) Ptr ¶
func (x ProjectStatus) Ptr() *ProjectStatus
func (*ProjectStatus) Scan ¶
func (x *ProjectStatus) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (ProjectStatus) String ¶
func (x ProjectStatus) String() string
String implements the Stringer interface.
func (*ProjectStatus) UnmarshalText ¶
func (x *ProjectStatus) UnmarshalText(text []byte) error
UnmarshalText implements the text unmarshaller method.
type Shop ¶
type Shop string
Shops ENUM( SOME_PLACE_AWESOME, SomewhereElse, LocationUnknown )
const ( // AcmeInc_SOME_PLACE_AWESOME is a Shop of type SOME_PLACE_AWESOME. AcmeInc_SOME_PLACE_AWESOME Shop = "SOME_PLACE_AWESOME" // AcmeInc_SomewhereElse is a Shop of type SomewhereElse. AcmeInc_SomewhereElse Shop = "SomewhereElse" // AcmeInc_LocationUnknown is a Shop of type LocationUnknown. AcmeInc_LocationUnknown Shop = "LocationUnknown" )
func (Shop) MarshalText ¶
MarshalText implements the text marshaller method.
func (*Shop) UnmarshalText ¶
UnmarshalText implements the text unmarshaller method.
type Status ¶
type Status int
ENUM( Unknown = -1, Good, Bad ).
func ParseStatus ¶
ParseStatus attempts to convert a string to a Status.
type StrState ¶
type StrState string
ENUM(pending, running, completed, failed)
const ( // StrStatePending is a StrState of type pending. StrStatePending StrState = "pending" // StrStateRunning is a StrState of type running. StrStateRunning StrState = "running" // StrStateCompleted is a StrState of type completed. StrStateCompleted StrState = "completed" // StrStateFailed is a StrState of type failed. StrStateFailed StrState = "failed" )
func MustParseStrState ¶
MustParseStrState converts a string to a StrState, and panics if is not valid.
func ParseStrState ¶
ParseStrState attempts to convert a string to a StrState.
func (*StrState) Get ¶
func (x *StrState) Get() interface{}
Get implements the Golang flag.Getter interface func.
func (StrState) MarshalText ¶
MarshalText implements the text marshaller method.
func (*StrState) UnmarshalText ¶
UnmarshalText implements the text unmarshaller method.
Source Files ¶
- animal.go
- animal_enum.go
- color.go
- color_enum.go
- commented.go
- commented_enum.go
- custom_prefix.go
- custom_prefix_enum.go
- enum_32_bit.go
- enum_32_bit_enum.go
- enum_64_bit.go
- enum_64_bit_enum.go
- example.go
- example_enum.go
- force_lower.go
- force_lower_enum.go
- negative.go
- negative_enum.go
- replace_prefix.go
- replace_prefix_enum.go
- replace_prefix_int.go
- replace_prefix_int_enum.go
- sql.go
- sql_enum.go
- sql_int.go
- sql_int_enum.go
- sql_str.go
- sql_str_enum.go
- sql_str_int.go
- sql_str_int_enum.go
- strings_only.go
- strings_only_enum.go
- user_template.go
- user_template_enum.go