version

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DevVersion = "0.22.0"

DevVersion is the service current development version.

View Source
var Version = "0.22.0"

Version is the service current released version. Semantic versioning: https://semver.org/

Functions

func GetCurrentVersion

func GetCurrentVersion(mode string) string

func GetMinorVersion

func GetMinorVersion(version string) string

func GetSchemaVersion

func GetSchemaVersion(version string) string

func IsVersionGreaterOrEqualThan

func IsVersionGreaterOrEqualThan(version, target string) bool

IsVersionGreaterOrEqualThan returns true if version is greater than or equal to target.

func IsVersionGreaterThan

func IsVersionGreaterThan(version, target string) bool

IsVersionGreaterThan returns true if version is greater than target.

Types

type SortVersion added in v0.10.1

type SortVersion []string

func (SortVersion) Len added in v0.10.1

func (s SortVersion) Len() int

func (SortVersion) Less added in v0.10.1

func (s SortVersion) Less(i, j int) bool

func (SortVersion) Swap added in v0.10.1

func (s SortVersion) Swap(i, j int)

Jump to

Keyboard shortcuts

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