version

package module
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2025 License: Apache-2.0 Imports: 3 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseVersion

func ParseVersion(v string) (*semver.Version, error)

ParseVersion parses a version string and returns a semver.Version object. The validation is looser than the official semver spec, allowing for a 'v' prefix and 0-prefixed numbers in the major, minor, and patch segments (e.g., v2025.02.03-rc.1 is considered valid).

func Sort added in v0.8.0

func Sort(c *semver.Constraints, vs []string) []string

Sort filters the given strings based on the provided semver range and sorts them in descending order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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