semver

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 3 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 = fmt.Errorf("invalid version")
	// ErrInvalidConstraint is returned when the constraint is not valid.
	ErrInvalidConstraint = fmt.Errorf("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