semver

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SemverParseError

type SemverParseError struct {
	// contains filtered or unexported fields
}

func (*SemverParseError) Error

func (e *SemverParseError) Error() string

type Version

type Version struct {
	// contains filtered or unexported fields
}

func MustParse

func MustParse(text string) Version

func TryParseVersion

func TryParseVersion(text string) (Version, error)

func (*Version) Compare

func (a *Version) Compare(b *Version) int

func (*Version) String

func (v *Version) String() string

type VersionRange

type VersionRange struct {
	// contains filtered or unexported fields
}

func TryParseVersionRange

func TryParseVersionRange(text string) (VersionRange, bool)

func (*VersionRange) String

func (v *VersionRange) String() string

func (*VersionRange) Test

func (v *VersionRange) Test(version *Version) bool

Jump to

Keyboard shortcuts

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