Documentation ¶
Index ¶
- Constants
- Variables
- type CountriesIso31661
- func (e CountriesIso31661) Equals(s string) bool
- func (e CountriesIso31661) EqualsIgnoreCase(s string) bool
- func (e *CountriesIso31661) GobDecode(data []byte) error
- func (e CountriesIso31661) GobEncode() ([]byte, error)
- func (e CountriesIso31661) IsEmpty() bool
- func (e CountriesIso31661) IsUndefined() bool
- func (e CountriesIso31661) MarshalBSON() ([]byte, error)
- func (e CountriesIso31661) MarshalBinary() ([]byte, error)
- func (e CountriesIso31661) MarshalJSON() ([]byte, error)
- func (e CountriesIso31661) MarshalText() ([]byte, error)
- func (e *CountriesIso31661) Scan(raw interface{}) error
- func (e CountriesIso31661) String() string
- func (e *CountriesIso31661) UnmarshalBSON(data []byte) error
- func (e *CountriesIso31661) UnmarshalBinary(data []byte) error
- func (e *CountriesIso31661) UnmarshalJSON(data []byte) error
- func (e *CountriesIso31661) UnmarshalText(text []byte) error
- func (e CountriesIso31661) Value() (driver.Value, error)
- type Ghost
- func (e Ghost) Equals(s string) bool
- func (e Ghost) EqualsIgnoreCase(s string) bool
- func (e *Ghost) GobDecode(data []byte) error
- func (e Ghost) GobEncode() ([]byte, error)
- func (e Ghost) IsEmpty() bool
- func (e Ghost) IsUndefined() bool
- func (e Ghost) MarshalBSON() ([]byte, error)
- func (e Ghost) MarshalBinary() ([]byte, error)
- func (e Ghost) MarshalJSON() ([]byte, error)
- func (e Ghost) MarshalText() ([]byte, error)
- func (e *Ghost) Scan(raw interface{}) error
- func (e Ghost) String() string
- func (e *Ghost) UnmarshalBSON(data []byte) error
- func (e *Ghost) UnmarshalBinary(data []byte) error
- func (e *Ghost) UnmarshalJSON(data []byte) error
- func (e *Ghost) UnmarshalText(text []byte) error
- func (e Ghost) Value() (driver.Value, error)
- type SpecialThing
- func (e SpecialThing) Equals(s string) bool
- func (e SpecialThing) EqualsIgnoreCase(s string) bool
- func (e *SpecialThing) GobDecode(data []byte) error
- func (e SpecialThing) GobEncode() ([]byte, error)
- func (e SpecialThing) IsEmpty() bool
- func (e SpecialThing) IsUndefined() bool
- func (e SpecialThing) MarshalBSON() ([]byte, error)
- func (e SpecialThing) MarshalBinary() ([]byte, error)
- func (e SpecialThing) MarshalJSON() ([]byte, error)
- func (e SpecialThing) MarshalText() ([]byte, error)
- func (e *SpecialThing) Scan(raw interface{}) error
- func (e SpecialThing) String() string
- func (e *SpecialThing) UnmarshalBSON(data []byte) error
- func (e *SpecialThing) UnmarshalBinary(data []byte) error
- func (e *SpecialThing) UnmarshalJSON(data []byte) error
- func (e *SpecialThing) UnmarshalText(text []byte) error
- func (e SpecialThing) Value() (driver.Value, error)
Constants ¶
const (
JSONNull string = "null"
)
Variables ¶
var ( CountriesIso31661AR = CountriesIso31661{stringEnumValue{"Ar", countriesIso31661Key}} CountriesIso31661CA = CountriesIso31661{stringEnumValue{"Ca", countriesIso31661Key}} CountriesIso31661US = CountriesIso31661{stringEnumValue{"Us", countriesIso31661Key}} CountriesIso31661UY = CountriesIso31661{stringEnumValue{"Uy", countriesIso31661Key}} EnumCountriesIso31661 = countriesIso31661Enum{countriesIso31661List{ CountriesIso31661AR, CountriesIso31661CA, CountriesIso31661US, CountriesIso31661UY, }} )
var ( GhostBlinky = Ghost{stringEnumValue{"Blinky", ghostKey}} GhostClyde = Ghost{stringEnumValue{"Clyde", ghostKey}} GhostInky = Ghost{stringEnumValue{"Inky", ghostKey}} GhostPinky = Ghost{stringEnumValue{"Pinky", ghostKey}} EnumGhost = ghostEnum{ghostList{ GhostBlinky, GhostClyde, GhostInky, GhostPinky, }} )
var ( SpecialThingBar = SpecialThing{stringEnumValue{"Bar", specialThingKey}} SpecialThingBaz = SpecialThing{stringEnumValue{"Baz", specialThingKey}} SpecialThingFoo = SpecialThing{stringEnumValue{"Foo", specialThingKey}} SpecialThingQuux = SpecialThing{stringEnumValue{"Quux", specialThingKey}} EnumSpecialThing = specialThingEnum{specialThingList{ SpecialThingBar, SpecialThingBaz, SpecialThingFoo, SpecialThingQuux, }} )
Functions ¶
This section is empty.
Types ¶
type CountriesIso31661 ¶
type CountriesIso31661 struct {
// contains filtered or unexported fields
}
func CountriesIso31661FromValue ¶
func CountriesIso31661FromValue(value string, ignoreCase bool) (CountriesIso31661, bool)
func (CountriesIso31661) EqualsIgnoreCase ¶
Equals does a case insensitive comparison against a string value
func (*CountriesIso31661) GobDecode ¶
func (e *CountriesIso31661) GobDecode(data []byte) error
func (CountriesIso31661) IsEmpty ¶
func (e CountriesIso31661) IsEmpty() bool
IsEmpty returns whether the value is empty. Such values are permitted in order to support empty values on compile and (un)marshaling time without pointer fields
func (CountriesIso31661) IsUndefined ¶
func (e CountriesIso31661) IsUndefined() bool
IsUndefined returns whether the value is manually initialized, thus being undefined (MyEnumType{}). Such values are permitted in order to support empty values on compile and (un)marshaling time without pointer fields
func (CountriesIso31661) MarshalBSON ¶
MarshalBSON implements the bson.Marshaler interface.
func (CountriesIso31661) MarshalBinary ¶
MarshalBinary implements the encoding.BinaryMarshaler interface.
func (CountriesIso31661) MarshalJSON ¶
MarshalJSON returns the stringEnumValue value as JSON
func (CountriesIso31661) MarshalText ¶
MarshalText serializes this date types to string
func (*CountriesIso31661) Scan ¶
func (e *CountriesIso31661) Scan(raw interface{}) error
func (CountriesIso31661) String ¶
func (e CountriesIso31661) String() string
Stringer implementation
func (*CountriesIso31661) UnmarshalBSON ¶
func (e *CountriesIso31661) UnmarshalBSON(data []byte) error
func (*CountriesIso31661) UnmarshalBinary ¶
func (e *CountriesIso31661) UnmarshalBinary(data []byte) error
func (*CountriesIso31661) UnmarshalJSON ¶
func (e *CountriesIso31661) UnmarshalJSON(data []byte) error
func (*CountriesIso31661) UnmarshalText ¶
func (e *CountriesIso31661) UnmarshalText(text []byte) error
type Ghost ¶
type Ghost struct {
// contains filtered or unexported fields
}
func (Ghost) EqualsIgnoreCase ¶
Equals does a case insensitive comparison against a string value
func (Ghost) IsEmpty ¶
func (e Ghost) IsEmpty() bool
IsEmpty returns whether the value is empty. Such values are permitted in order to support empty values on compile and (un)marshaling time without pointer fields
func (Ghost) IsUndefined ¶
func (e Ghost) IsUndefined() bool
IsUndefined returns whether the value is manually initialized, thus being undefined (MyEnumType{}). Such values are permitted in order to support empty values on compile and (un)marshaling time without pointer fields
func (Ghost) MarshalBSON ¶
MarshalBSON implements the bson.Marshaler interface.
func (Ghost) MarshalBinary ¶
MarshalBinary implements the encoding.BinaryMarshaler interface.
func (Ghost) MarshalJSON ¶
MarshalJSON returns the stringEnumValue value as JSON
func (Ghost) MarshalText ¶
MarshalText serializes this date types to string
func (*Ghost) UnmarshalBSON ¶
func (*Ghost) UnmarshalBinary ¶
func (*Ghost) UnmarshalJSON ¶
func (*Ghost) UnmarshalText ¶
type SpecialThing ¶
type SpecialThing struct {
// contains filtered or unexported fields
}
func SpecialThingFromValue ¶
func SpecialThingFromValue(value string, ignoreCase bool) (SpecialThing, bool)
func (SpecialThing) EqualsIgnoreCase ¶
Equals does a case insensitive comparison against a string value
func (*SpecialThing) GobDecode ¶
func (e *SpecialThing) GobDecode(data []byte) error
func (SpecialThing) IsEmpty ¶
func (e SpecialThing) IsEmpty() bool
IsEmpty returns whether the value is empty. Such values are permitted in order to support empty values on compile and (un)marshaling time without pointer fields
func (SpecialThing) IsUndefined ¶
func (e SpecialThing) IsUndefined() bool
IsUndefined returns whether the value is manually initialized, thus being undefined (MyEnumType{}). Such values are permitted in order to support empty values on compile and (un)marshaling time without pointer fields
func (SpecialThing) MarshalBSON ¶
MarshalBSON implements the bson.Marshaler interface.
func (SpecialThing) MarshalBinary ¶
MarshalBinary implements the encoding.BinaryMarshaler interface.
func (SpecialThing) MarshalJSON ¶
MarshalJSON returns the stringEnumValue value as JSON
func (SpecialThing) MarshalText ¶
MarshalText serializes this date types to string
func (*SpecialThing) Scan ¶
func (e *SpecialThing) Scan(raw interface{}) error
func (*SpecialThing) UnmarshalBSON ¶
func (e *SpecialThing) UnmarshalBSON(data []byte) error
func (*SpecialThing) UnmarshalBinary ¶
func (e *SpecialThing) UnmarshalBinary(data []byte) error
func (*SpecialThing) UnmarshalJSON ¶
func (e *SpecialThing) UnmarshalJSON(data []byte) error
func (*SpecialThing) UnmarshalText ¶
func (e *SpecialThing) UnmarshalText(text []byte) error