|
|
|
@ -7,10 +7,10 @@ import (
|
|
|
|
|
|
|
|
|
|
// Version is the service current released version.
|
|
|
|
|
// Semantic versioning: https://semver.org/
|
|
|
|
|
var Version = "0.4.2"
|
|
|
|
|
var Version = "0.4.3"
|
|
|
|
|
|
|
|
|
|
// DevVersion is the service current development version.
|
|
|
|
|
var DevVersion = "0.4.2"
|
|
|
|
|
var DevVersion = "0.4.3"
|
|
|
|
|
|
|
|
|
|
func GetCurrentVersion(mode string) string {
|
|
|
|
|
if mode == "dev" {
|
|
|
|
@ -27,6 +27,12 @@ func GetMinorVersion(version string) string {
|
|
|
|
|
return versionList[0] + "." + versionList[1]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func GetSchemaVersion(version string) string {
|
|
|
|
|
minorVersion := GetMinorVersion(version)
|
|
|
|
|
|
|
|
|
|
return minorVersion + ".0"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// convSemanticVersionToInt converts version string to int.
|
|
|
|
|
func convSemanticVersionToInt(version string) int {
|
|
|
|
|
versionList := strings.Split(version, ".")
|
|
|
|
|