Documentation
¶
Index ¶
- Constants
- Variables
- type Index
- func (it Index) AsBasicByteEnumContractsBinder() enuminf.BasicByteEnumContractsBinder
- func (it Index) AsBasicEnumContractsBinder() enuminf.BasicEnumContractsBinder
- func (it *Index) AsJsonContractsBinder() corejson.JsonContractsBinder
- func (it Index) EnumType() enuminf.EnumTyper
- func (it Index) Format(format string) (compiled string)
- func (it *Index) IsAnyEnumsEqual(enums ...enuminf.BasicEnumer) bool
- func (it Index) IsAnyValuesEqual(anyByteValues ...byte) bool
- func (it Index) IsBuild() bool
- func (it Index) IsEnumEqual(enum enuminf.BasicEnumer) bool
- func (it Index) IsInvalid() bool
- func (it Index) IsMajor() bool
- func (it Index) IsMinor() bool
- func (it Index) IsNameEqual(name string) bool
- func (it Index) IsNameOf(names ...string) bool
- func (it Index) IsPatch() bool
- func (it Index) IsValid() bool
- func (it Index) IsValueEqual(value byte) bool
- func (it Index) Json() corejson.Result
- func (it *Index) JsonParseSelfInject(jsonResult *corejson.Result) error
- func (it Index) JsonPtr() *corejson.Result
- func (it Index) MarshalJSON() ([]byte, error)
- func (it *Index) MaxByte() byte
- func (it *Index) MinByte() byte
- func (it Index) Name() string
- func (it Index) NameValue() string
- func (it Index) RangeNamesCsv() string
- func (it *Index) RangesByte() []byte
- func (it Index) String() string
- func (it Index) ToNumberString() string
- func (it Index) TypeName() string
- func (it *Index) UnmarshalJSON(data []byte) error
- func (it Index) UnmarshallEnumToValue(jsonUnmarshallingValue []byte) (byte, error)
- func (it Index) ValueByte() byte
- func (it Index) ValueInt() int
- func (it Index) ValueInt16() int16
- func (it Index) ValueInt32() int32
- func (it Index) ValueInt8() int8
- func (it Index) ValueString() string
Constants ¶
View Source
const ( BuildLength = 4 PatchLength = 3 MinorLength = 2 MajorLength = 1 NoElementLength = 0 )
Variables ¶
View Source
var ( UptoBuildIndexes = []int{ Major.ValueInt(), Minor.ValueInt(), Patch.ValueInt(), Build.ValueInt(), } UptoPatchIndexes = [...]int{ Major.ValueInt(), Minor.ValueInt(), Patch.ValueInt(), } UptoMinorIndexes = []int{ Major.ValueInt(), Minor.ValueInt(), } UptoMajorIndexes = []int{ Major.ValueInt(), } Ranges = [...]string{ Major: "Major", Minor: "Minor", Patch: "Patch", Build: "Build", } AllVersionIndexes = []Index{ Major, Minor, Patch, Build, } BasicEnumImpl = enumimpl.New.BasicByte.UsingTypeSlice( reflectinternal.TypeName(Major), Ranges[:]) )
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index byte
func (Index) AsBasicByteEnumContractsBinder ¶
func (it Index) AsBasicByteEnumContractsBinder() enuminf.BasicByteEnumContractsBinder
func (Index) AsBasicEnumContractsBinder ¶
func (it Index) AsBasicEnumContractsBinder() enuminf.BasicEnumContractsBinder
func (*Index) AsJsonContractsBinder ¶ added in v0.9.5
func (it *Index) AsJsonContractsBinder() corejson.JsonContractsBinder
func (*Index) IsAnyEnumsEqual ¶ added in v1.1.9
func (it *Index) IsAnyEnumsEqual(enums ...enuminf.BasicEnumer) bool
func (Index) IsAnyValuesEqual ¶ added in v1.1.9
func (Index) IsEnumEqual ¶ added in v1.1.9
func (it Index) IsEnumEqual(enum enuminf.BasicEnumer) bool
func (Index) IsNameEqual ¶ added in v1.1.9
func (Index) IsValueEqual ¶ added in v1.1.9
func (*Index) JsonParseSelfInject ¶ added in v0.9.5
func (Index) MarshalJSON ¶
func (Index) RangeNamesCsv ¶
func (*Index) RangesByte ¶
func (Index) ToNumberString ¶
func (*Index) UnmarshalJSON ¶
func (Index) UnmarshallEnumToValue ¶
func (Index) ValueInt16 ¶ added in v1.1.9
func (Index) ValueInt32 ¶ added in v1.1.9
func (Index) ValueString ¶ added in v1.1.9
Click to show internal directories.
Click to hide internal directories.