semver

package
v0.0.0-...-7d4a354 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValid

func IsValid(s string) bool

IsValid reports whether s is a valid semantic version string.

Types

type Prerelease

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

A Prerelease holds the pre-release identifiers of a version.

func (Prerelease) String

func (p Prerelease) String() string

type Version

type Version struct {
	Major      int
	Minor      int
	Patch      int
	Prerelease Prerelease
	Build      buildIdentifiers
	// contains filtered or unexported fields
}

A Version is a parsed instance of a version number that adheres to the semantic versioning 2.0.0.

func Parse

func Parse(ver string) (Version, error)

func (Version) String

func (v Version) String() string

Jump to

Keyboard shortcuts

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