semver

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Regex string = `` //nolint:lll // cannot split regex in multiple lines.

/* 237-byte string literal not displayed */

Variables

View Source
var (
	// ErrInvalidVersion is returned when the version is not valid.
	ErrInvalidVersion = errors.New("invalid version")
	// ErrInvalidConstraint is returned when the constraint is not valid.
	ErrInvalidConstraint = errors.New("invalid constraint")
)

Functions

func EnsureNoBuild

func EnsureNoBuild(version string) string

func EnsureNoPrefix

func EnsureNoPrefix(version string) string

func EnsurePrefix

func EnsurePrefix(version string) string

func NewConstraint

func NewConstraint(c string) (version.Constraints, error)

func NewVersion

func NewVersion(v string) (*version.Version, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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