Documentation ¶
Index ¶
- Variables
- func Is(rawString string, expected Architecture) bool
- func RangesInvalidErr() error
- func StringMustBe(rawString string, expected Architecture)
- func ValidationError(rawString string, expectedEnum Architecture) error
- type Architecture
- func (it Architecture) AllNameValues() []string
- func (it Architecture) AsBasicByteEnumContractsBinder() enuminf.BasicByteEnumContractsBinder
- func (it *Architecture) AsBasicEnumContractsBinder() enuminf.BasicEnumContractsBinder
- func (it Architecture) EnumType() enuminf.EnumTyper
- func (it Architecture) Format(format string) (compiled string)
- func (it Architecture) IntegerEnumRanges() []int
- func (it Architecture) IsAnyNamesOf(names ...string) bool
- func (it Architecture) IsAnyOf(anyOfItems ...Architecture) bool
- func (it Architecture) IsAnyValuesEqual(anyByteValues ...byte) bool
- func (it Architecture) IsByteValueEqual(value byte) bool
- func (it Architecture) IsInvalid() bool
- func (it Architecture) IsNameEqual(name string) bool
- func (it Architecture) IsNameOf(anyNames ...string) bool
- func (it Architecture) IsUnknown() bool
- func (it Architecture) IsValid() bool
- func (it Architecture) IsValueEqual(value byte) bool
- func (it Architecture) IsX32() bool
- func (it Architecture) IsX64() bool
- func (it Architecture) MarshalJSON() ([]byte, error)
- func (it Architecture) MaxByte() byte
- func (it Architecture) MaxInt() int
- func (it Architecture) MaxValueString() string
- func (it Architecture) MinByte() byte
- func (it Architecture) MinInt() int
- func (it Architecture) MinMaxAny() (min, max interface{})
- func (it Architecture) MinValueString() string
- func (it Architecture) Name() string
- func (it Architecture) NameValue() string
- func (it Architecture) OnlySupportedErr(names ...string) error
- func (it Architecture) OnlySupportedMsgErr(message string, names ...string) error
- func (it Architecture) RangeNamesCsv() string
- func (it Architecture) RangesByte() []byte
- func (it Architecture) RangesDynamicMap() map[string]interface{}
- func (it Architecture) String() string
- func (it *Architecture) ToNumberString() string
- func (it Architecture) ToPtr() *Architecture
- func (it Architecture) TypeName() string
- func (it *Architecture) UnmarshalJSON(data []byte) error
- func (it *Architecture) UnmarshallEnumToValue(jsonUnmarshallingValue []byte) (byte, error)
- func (it Architecture) Value() byte
- func (it Architecture) ValueByte() byte
- func (it Architecture) ValueInt() int
- func (it Architecture) ValueInt16() int16
- func (it Architecture) ValueInt32() int32
- func (it Architecture) ValueInt8() int8
- func (it Architecture) ValueString() string
- func (it Architecture) ValueUInt16() uint16
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CurrentArch = Get(osconsts.CurrentSystemArchitecture) BasicEnumImpl = enumimpl.New.BasicByte.DefaultWithAliasMap( Invalid, architectures[:], aliasMap) )
Functions ¶
func Is ¶ added in v0.1.3
func Is( rawString string, expected Architecture, ) bool
func RangesInvalidErr ¶ added in v0.1.3
func RangesInvalidErr() error
func StringMustBe ¶ added in v0.1.3
func StringMustBe( rawString string, expected Architecture, )
func ValidationError ¶ added in v0.1.3
func ValidationError( rawString string, expectedEnum Architecture, ) error
Types ¶
type Architecture ¶
type Architecture byte
const ( X32 Architecture = iota X64 Invalid )
func Get ¶
func Get(rawGoArch string) Architecture
func Max ¶ added in v0.1.3
func Max() Architecture
func Min ¶ added in v0.1.3
func Min() Architecture
func New ¶ added in v0.1.3
func New(name string) (Architecture, error)
New
Creates string to the type Architecture
func NewMust ¶ added in v0.1.3
func NewMust(name string) Architecture
NewMust
Creates string to the type Variant
func (Architecture) AllNameValues ¶ added in v0.0.4
func (it Architecture) AllNameValues() []string
func (Architecture) AsBasicByteEnumContractsBinder ¶ added in v0.0.4
func (it Architecture) AsBasicByteEnumContractsBinder() enuminf.BasicByteEnumContractsBinder
func (*Architecture) AsBasicEnumContractsBinder ¶ added in v0.0.4
func (it *Architecture) AsBasicEnumContractsBinder() enuminf.BasicEnumContractsBinder
func (Architecture) EnumType ¶ added in v0.0.4
func (it Architecture) EnumType() enuminf.EnumTyper
func (Architecture) Format ¶ added in v0.0.4
func (it Architecture) Format(format string) (compiled string)
func (Architecture) IntegerEnumRanges ¶ added in v0.0.4
func (it Architecture) IntegerEnumRanges() []int
func (Architecture) IsAnyNamesOf ¶ added in v0.0.4
func (it Architecture) IsAnyNamesOf(names ...string) bool
func (Architecture) IsAnyOf ¶ added in v0.0.4
func (it Architecture) IsAnyOf(anyOfItems ...Architecture) bool
func (Architecture) IsAnyValuesEqual ¶ added in v0.0.4
func (it Architecture) IsAnyValuesEqual(anyByteValues ...byte) bool
func (Architecture) IsByteValueEqual ¶ added in v0.0.4
func (it Architecture) IsByteValueEqual(value byte) bool
func (Architecture) IsInvalid ¶ added in v0.0.4
func (it Architecture) IsInvalid() bool
func (Architecture) IsNameEqual ¶ added in v0.0.4
func (it Architecture) IsNameEqual(name string) bool
func (Architecture) IsNameOf ¶ added in v0.0.4
func (it Architecture) IsNameOf(anyNames ...string) bool
func (Architecture) IsUnknown ¶
func (it Architecture) IsUnknown() bool
func (Architecture) IsValid ¶ added in v0.0.4
func (it Architecture) IsValid() bool
func (Architecture) IsValueEqual ¶ added in v0.0.4
func (it Architecture) IsValueEqual(value byte) bool
func (Architecture) IsX32 ¶
func (it Architecture) IsX32() bool
func (Architecture) IsX64 ¶
func (it Architecture) IsX64() bool
func (Architecture) MarshalJSON ¶ added in v0.0.4
func (it Architecture) MarshalJSON() ([]byte, error)
func (Architecture) MaxByte ¶ added in v0.0.4
func (it Architecture) MaxByte() byte
func (Architecture) MaxInt ¶ added in v0.0.4
func (it Architecture) MaxInt() int
func (Architecture) MaxValueString ¶ added in v0.0.4
func (it Architecture) MaxValueString() string
func (Architecture) MinByte ¶ added in v0.0.4
func (it Architecture) MinByte() byte
func (Architecture) MinInt ¶ added in v0.0.4
func (it Architecture) MinInt() int
func (Architecture) MinMaxAny ¶ added in v0.1.3
func (it Architecture) MinMaxAny() (min, max interface{})
func (Architecture) MinValueString ¶ added in v0.0.4
func (it Architecture) MinValueString() string
func (Architecture) Name ¶ added in v0.0.4
func (it Architecture) Name() string
func (Architecture) NameValue ¶ added in v0.0.4
func (it Architecture) NameValue() string
func (Architecture) OnlySupportedErr ¶ added in v0.0.4
func (it Architecture) OnlySupportedErr(names ...string) error
func (Architecture) OnlySupportedMsgErr ¶ added in v0.0.4
func (it Architecture) OnlySupportedMsgErr(message string, names ...string) error
func (Architecture) RangeNamesCsv ¶ added in v0.0.4
func (it Architecture) RangeNamesCsv() string
func (Architecture) RangesByte ¶ added in v0.0.4
func (it Architecture) RangesByte() []byte
func (Architecture) RangesDynamicMap ¶ added in v0.0.4
func (it Architecture) RangesDynamicMap() map[string]interface{}
func (Architecture) String ¶
func (it Architecture) String() string
func (*Architecture) ToNumberString ¶ added in v0.0.4
func (it *Architecture) ToNumberString() string
func (Architecture) ToPtr ¶ added in v0.0.4
func (it Architecture) ToPtr() *Architecture
func (Architecture) TypeName ¶ added in v0.0.4
func (it Architecture) TypeName() string
func (*Architecture) UnmarshalJSON ¶ added in v0.0.4
func (it *Architecture) UnmarshalJSON(data []byte) error
func (*Architecture) UnmarshallEnumToValue ¶ added in v0.0.4
func (it *Architecture) UnmarshallEnumToValue( jsonUnmarshallingValue []byte, ) (byte, error)
func (Architecture) Value ¶
func (it Architecture) Value() byte
func (Architecture) ValueByte ¶ added in v0.0.4
func (it Architecture) ValueByte() byte
func (Architecture) ValueInt ¶
func (it Architecture) ValueInt() int
func (Architecture) ValueInt16 ¶ added in v0.0.4
func (it Architecture) ValueInt16() int16
func (Architecture) ValueInt32 ¶ added in v0.0.4
func (it Architecture) ValueInt32() int32
func (Architecture) ValueInt8 ¶ added in v0.0.4
func (it Architecture) ValueInt8() int8
func (Architecture) ValueString ¶ added in v0.0.4
func (it Architecture) ValueString() string
func (Architecture) ValueUInt16 ¶ added in v0.0.4
func (it Architecture) ValueUInt16() uint16
Click to show internal directories.
Click to hide internal directories.