Categorygithub.com/blang/semver/v4
modulepackage
4.0.0
Repository: https://github.com/blang/semver.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

FinalizeVersion returns the major, minor and patch number only and discards prerelease and build number.
Make is an alias for Parse, parses version string and returns a validated Version or error.
MustParse is like Parse but panics if the version cannot be parsed.
MustParseRange is like ParseRange but panics if the range cannot be parsed.
New is an alias for Parse and returns a pointer, parses version string and returns a validated Version or error.
NewBuildVersion creates a new valid build version.
NewPRVersion creates a new valid prerelease version.
Parse parses version string and returns a validated Version or error.
ParseRange parses a range and returns a Range.
ParseTolerant allows for certain version specifications that do not strictly adhere to semver specs to be parsed by this library.
Sort sorts a slice of versions.

# Variables

SpecVersion is the latest fully supported spec version of semver.

# Structs

PRVersion represents a PreRelease Version.
Version represents a semver compatible version.

# Type aliases

Range represents a range of versions.
Versions represents multiple versions.