version

package
v1.11.11 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidVersion   = errors.New("invalid version format")
	ErrUncoveredVersion = errors.New("version is lower than required")
)

Functions

func Check added in v1.9.0

func Check(wanted, given string) error

func CheckCovered

func CheckCovered(targetVersion string) error

CheckCovered returns true if given version is less or equal than current and false otherwise.

func Version

func Version(verbose bool) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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