semver

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SemVer

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

Semantic Version

Format RegEx: ^(?P<major>0|[1-9]\d*) \.(?P<minor>0|[1-9]\d*) \.(?P<patch>0|[1-9]\d*) (?:-(?P<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))? (?:\+(?P<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$

func NewVersion

func NewVersion(version string) (*SemVer, error)

func (*SemVer) Compare

func (v *SemVer) Compare(other *SemVer) int

func (*SemVer) String

func (v *SemVer) String() string

Jump to

Keyboard shortcuts

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