chore: release v0.4.3

This commit is contained in:
Steven
2022-09-09 20:00:04 +08:00
parent d1a4348048
commit b8a7df21f2
6 changed files with 16 additions and 9 deletions

View File

@@ -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, ".")