version

package
v0.25.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DevVersion = "0.25.3"

DevVersion is the service current development version.

View Source
var Version = "0.25.3"

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

GetMinorVersion extracts the minor version (e.g., "0.25") from a full version string (e.g., "0.25.1"). Returns the minor version string or empty string if the version format is invalid. Version format should be "major.minor.patch" (e.g., "0.25.1").

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

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