versionindexes

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 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.New.BasicByte.UsingTypeSlice(
		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
	Invalid Index = 4
)

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) EnumType added in v1.1.9

func (it Index) EnumType() enuminf.EnumTyper

func (Index) Format added in v1.1.9

func (it Index) Format(format string) (compiled string)

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 (it Index) IsAnyValuesEqual(anyByteValues ...byte) bool

func (Index) IsBuild

func (it Index) IsBuild() bool

func (Index) IsEnumEqual added in v1.1.9

func (it Index) IsEnumEqual(enum enuminf.BasicEnumer) bool

func (Index) IsInvalid added in v1.1.8

func (it Index) IsInvalid() bool

func (Index) IsMajor

func (it Index) IsMajor() bool

func (Index) IsMinor

func (it Index) IsMinor() bool

func (Index) IsNameEqual added in v1.1.9

func (it Index) IsNameEqual(name string) bool

func (Index) IsNameOf added in v1.1.9

func (it Index) IsNameOf(names ...string) bool

func (Index) IsPatch

func (it Index) IsPatch() bool

func (Index) IsValid added in v1.1.8

func (it Index) IsValid() bool

func (Index) IsValueEqual added in v1.1.9

func (it Index) IsValueEqual(value byte) 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

func (Index) ValueInt16 added in v1.1.9

func (it Index) ValueInt16() int16

func (Index) ValueInt32 added in v1.1.9

func (it Index) ValueInt32() int32

func (Index) ValueInt8 added in v1.1.9

func (it Index) ValueInt8() int8

func (Index) ValueString added in v1.1.9

func (it Index) ValueString() string

Jump to

Keyboard shortcuts

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