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 = func() CountriesIso31661 { return CountriesIso31661{stringEnumValue{"Ar", countriesIso31661Key}} } CountriesIso31661CA = func() CountriesIso31661 { return CountriesIso31661{stringEnumValue{"Ca", countriesIso31661Key}} } CountriesIso31661US = func() CountriesIso31661 { return CountriesIso31661{stringEnumValue{"Us", countriesIso31661Key}} } CountriesIso31661UY = func() CountriesIso31661 { return CountriesIso31661{stringEnumValue{"Uy", countriesIso31661Key}} } EnumCountriesIso31661 = countriesIso31661Enum{countriesIso31661List{ CountriesIso31661AR, CountriesIso31661CA, CountriesIso31661US, CountriesIso31661UY, }} )
var ( GhostBlinky = func() Ghost { return Ghost{stringEnumValue{"Blinky", ghostKey}} } GhostClyde = func() Ghost { return Ghost{stringEnumValue{"Clyde", ghostKey}} } GhostInky = func() Ghost { return Ghost{stringEnumValue{"Inky", ghostKey}} } GhostPinky = func() Ghost { return Ghost{stringEnumValue{"Pinky", ghostKey}} } EnumGhost = ghostEnum{ghostList{ GhostBlinky, GhostClyde, GhostInky, GhostPinky, }} )
var ( SpecialThingBar = func() SpecialThing { return SpecialThing{stringEnumValue{"Bar", specialThingKey}} } SpecialThingBaz = func() SpecialThing { return SpecialThing{stringEnumValue{"Baz", specialThingKey}} } SpecialThingFoo = func() SpecialThing { return SpecialThing{stringEnumValue{"Foo", specialThingKey}} } SpecialThingQuux = func() SpecialThing { return SpecialThing{stringEnumValue{"Quux", specialThingKey}} } EnumSpecialThing = specialThingEnum{specialThingList{ SpecialThingBar, SpecialThingBaz, SpecialThingFoo, SpecialThingQuux, }} )
Functions ¶
This section is empty.
Types ¶
type CountriesIso31661 ¶ added in v0.4.0
type CountriesIso31661 struct {
// contains filtered or unexported fields
}
func CountriesIso31661FromValue ¶ added in v0.4.0
func CountriesIso31661FromValue(value string, ignoreCase bool) (CountriesIso31661, bool)
func (CountriesIso31661) Equals ¶ added in v0.4.0
Equals does a case sensitive comparison against a string value
func (CountriesIso31661) EqualsIgnoreCase ¶ added in v0.4.0
Equals does a case insensitive comparison against a string value
func (*CountriesIso31661) GobDecode ¶ added in v0.4.0
func (e *CountriesIso31661) GobDecode(data []byte) error
func (CountriesIso31661) GobEncode ¶ added in v0.4.0
GobEncode implements the gob.GobEncoder interface.
func (CountriesIso31661) IsEmpty ¶ added in v0.4.0
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 ¶ added in v0.4.0
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 ¶ added in v0.4.0
MarshalBSON implements the bson.Marshaler interface.
func (CountriesIso31661) MarshalBinary ¶ added in v0.4.0
MarshalBinary implements the encoding.BinaryMarshaler interface.
func (CountriesIso31661) MarshalJSON ¶ added in v0.4.0
MarshalJSON returns the stringEnumValue value as JSON
func (CountriesIso31661) MarshalText ¶ added in v0.4.0
MarshalText serializes this date types to string
func (*CountriesIso31661) Scan ¶ added in v0.4.0
func (e *CountriesIso31661) Scan(raw interface{}) error
func (CountriesIso31661) String ¶ added in v0.4.0
func (e CountriesIso31661) String() string
Stringer implementation
func (*CountriesIso31661) UnmarshalBSON ¶ added in v0.4.0
func (e *CountriesIso31661) UnmarshalBSON(data []byte) error
func (*CountriesIso31661) UnmarshalBinary ¶ added in v0.4.0
func (e *CountriesIso31661) UnmarshalBinary(data []byte) error
func (*CountriesIso31661) UnmarshalJSON ¶ added in v0.4.0
func (e *CountriesIso31661) UnmarshalJSON(data []byte) error
func (*CountriesIso31661) UnmarshalText ¶ added in v0.4.0
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 ¶ added in v0.1.0
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 ¶ added in v0.2.1
type SpecialThing struct {
// contains filtered or unexported fields
}
func SpecialThingFromValue ¶ added in v0.2.1
func SpecialThingFromValue(value string, ignoreCase bool) (SpecialThing, bool)
func (SpecialThing) Equals ¶ added in v0.2.1
Equals does a case sensitive comparison against a string value
func (SpecialThing) EqualsIgnoreCase ¶ added in v0.2.1
Equals does a case insensitive comparison against a string value
func (*SpecialThing) GobDecode ¶ added in v0.2.1
func (e *SpecialThing) GobDecode(data []byte) error
func (SpecialThing) IsEmpty ¶ added in v0.2.1
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 ¶ added in v0.2.1
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 ¶ added in v0.2.1
MarshalBSON implements the bson.Marshaler interface.
func (SpecialThing) MarshalBinary ¶ added in v0.2.1
MarshalBinary implements the encoding.BinaryMarshaler interface.
func (SpecialThing) MarshalJSON ¶ added in v0.2.1
MarshalJSON returns the stringEnumValue value as JSON
func (SpecialThing) MarshalText ¶ added in v0.2.1
MarshalText serializes this date types to string
func (*SpecialThing) Scan ¶ added in v0.2.1
func (e *SpecialThing) Scan(raw interface{}) error
func (SpecialThing) String ¶ added in v0.2.1
func (e SpecialThing) String() string
Stringer implementation
func (*SpecialThing) UnmarshalBSON ¶ added in v0.2.1
func (e *SpecialThing) UnmarshalBSON(data []byte) error
func (*SpecialThing) UnmarshalBinary ¶ added in v0.2.1
func (e *SpecialThing) UnmarshalBinary(data []byte) error
func (*SpecialThing) UnmarshalJSON ¶ added in v0.2.1
func (e *SpecialThing) UnmarshalJSON(data []byte) error
func (*SpecialThing) UnmarshalText ¶ added in v0.2.1
func (e *SpecialThing) UnmarshalText(text []byte) error