version

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DevVersion = "1.0.0"

DevVersion is the service current development version.

View Source
var Version = "1.0.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

IsVersionGreaterThanOrEqualTo 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

type SortVersion []string

func (SortVersion) Len

func (s SortVersion) Len() int

func (SortVersion) Less

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

func (SortVersion) Swap

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