semver

package
v1.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValid

func IsValid(versionName string) bool

Types

type Version

type Version struct {
	Major                int
	Minor                int
	Patch                int
	Commit               string
	PreReleaseIdentifier string
	PreReleaseVersion    int
}

func ParseVersion

func ParseVersion(versionName string) (version Version)

func (Version) BadString

func (v Version) BadString() string

func (Version) GreaterThan

func (v Version) GreaterThan(anotherVersion Version) bool

func (Version) GreaterThanOrEqual

func (v Version) GreaterThanOrEqual(anotherVersion Version) bool

func (Version) LessThan

func (v Version) LessThan(anotherVersion Version) bool

func (Version) LessThanOrEqual

func (v Version) LessThanOrEqual(anotherVersion Version) bool

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