Documentation
¶
Index ¶
- Constants
- Variables
- type Index
- func (it *Index) AsBasicByteEnumContractsBinder() coreinterface.BasicByteEnumContractsBinder
- func (it *Index) AsBasicEnumContractsBinder() coreinterface.BasicEnumContractsBinder
- func (it *Index) AsJsonContractsBinder() corejson.JsonContractsBinder
- func (it Index) IsBuild() bool
- func (it Index) IsMajor() bool
- func (it Index) IsMinor() bool
- func (it Index) IsPatch() 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
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.NewBasicByteUsingIndexedSlice( reflectinternal.TypeName(Major), Ranges[:]) )
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index byte
func (*Index) AsBasicByteEnumContractsBinder ¶
func (it *Index) AsBasicByteEnumContractsBinder() coreinterface.BasicByteEnumContractsBinder
func (*Index) AsBasicEnumContractsBinder ¶
func (it *Index) AsBasicEnumContractsBinder() coreinterface.BasicEnumContractsBinder
func (*Index) AsJsonContractsBinder ¶ added in v0.9.5
func (it *Index) AsJsonContractsBinder() corejson.JsonContractsBinder
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 ¶
Click to show internal directories.
Click to hide internal directories.