gitlab.com/evatix-go/core@v1.3.55/enums/versionindexes/vars.go (about)

     1  package versionindexes
     2  
     3  import (
     4  	"gitlab.com/evatix-go/core/coreimpl/enumimpl"
     5  	"gitlab.com/evatix-go/core/internal/reflectinternal"
     6  )
     7  
     8  var (
     9  	UptoBuildIndexes = []int{
    10  		Major.ValueInt(),
    11  		Minor.ValueInt(),
    12  		Patch.ValueInt(),
    13  		Build.ValueInt(),
    14  	}
    15  
    16  	UptoPatchIndexes = [...]int{
    17  		Major.ValueInt(),
    18  		Minor.ValueInt(),
    19  		Patch.ValueInt(),
    20  	}
    21  
    22  	UptoMinorIndexes = []int{
    23  		Major.ValueInt(),
    24  		Minor.ValueInt(),
    25  	}
    26  
    27  	UptoMajorIndexes = []int{
    28  		Major.ValueInt(),
    29  	}
    30  
    31  	Ranges = [...]string{
    32  		Major: "Major",
    33  		Minor: "Minor",
    34  		Patch: "Patch",
    35  		Build: "Build",
    36  	}
    37  
    38  	AllVersionIndexes = []Index{
    39  		Major,
    40  		Minor,
    41  		Patch,
    42  		Build,
    43  	}
    44  
    45  	BasicEnumImpl = enumimpl.New.BasicByte.UsingTypeSlice(
    46  		reflectinternal.TypeName(Major),
    47  		Ranges[:])
    48  )