versionindexes

package
v1.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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
const (
	Major Index = iota
	Minor Index = 1
	Patch Index = 2
	Build Index = 3
)

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) IsBuild

func (it Index) IsBuild() bool

func (Index) IsMajor

func (it Index) IsMajor() bool

func (Index) IsMinor

func (it Index) IsMinor() bool

func (Index) IsPatch

func (it Index) IsPatch() bool

func (Index) Json added in v0.9.5

func (it Index) Json() corejson.Result

func (*Index) JsonParseSelfInject added in v0.9.5

func (it *Index) JsonParseSelfInject(jsonResult *corejson.Result) error

func (Index) JsonPtr added in v0.9.5

func (it Index) JsonPtr() *corejson.Result

func (*Index) MarshalJSON

func (it *Index) MarshalJSON() ([]byte, error)

func (*Index) MaxByte

func (it *Index) MaxByte() byte

func (*Index) MinByte

func (it *Index) MinByte() byte

func (*Index) Name

func (it *Index) Name() string

func (Index) NameValue added in v0.9.5

func (it Index) NameValue() string

func (Index) RangeNamesCsv

func (it Index) RangeNamesCsv() string

func (*Index) RangesByte

func (it *Index) RangesByte() []byte

func (Index) String

func (it Index) String() string

func (*Index) ToNumberString

func (it *Index) ToNumberString() string

func (Index) TypeName

func (it Index) TypeName() string

func (*Index) UnmarshalJSON

func (it *Index) UnmarshalJSON(data []byte) error

func (*Index) UnmarshallEnumToValue

func (it *Index) UnmarshallEnumToValue(
	jsonUnmarshallingValue []byte,
) (byte, error)

func (Index) ValueByte

func (it Index) ValueByte() byte

func (Index) ValueInt added in v0.9.5

func (it Index) ValueInt() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL