semver

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasPrefix

func HasPrefix(version, prefix string) bool

func IsFullVersion added in v0.0.3

func IsFullVersion(version string) bool

IsFullVersion returns true if the given version at least contains major, minor and patch segments.

func IsLessThan added in v0.0.3

func IsLessThan(semver1, semver2 string) bool

func IsValid

func IsValid(semver string) bool

func Latest

func Latest(versions []string) (string, error)

func SliceStableComparatorFor

func SliceStableComparatorFor(semvers []string) (func(int, int) bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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