semver

package
v0.0.0-...-e4f7161 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidSemVer is returned a version is found to be invalid when
	// being parsed.
	ErrInvalidSemVer = semver.ErrInvalidSemVer

	// ErrSegmentStartsZero is returned when a version segment starts with 0.
	// This is invalid in SemVer.
	ErrSegmentStartsZero = semver.ErrSegmentStartsZero

	// ErrInvalidMetadata is returned when the metadata is an invalid format.
	ErrInvalidMetadata = semver.ErrInvalidMetadata

	// ErrInvalidPrerelease is returned when the pre-release is an invalid format.
	ErrInvalidPrerelease = semver.ErrInvalidPrerelease
)

Functions

This section is empty.

Types

type Constraints

type Constraints = semver.Constraints

func NewConstraint

func NewConstraint(str string) (*Constraints, error)

type Version

type Version = semver.Version

func NewVersion

func NewVersion(str string) (*Version, error)

Jump to

Keyboard shortcuts

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