Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnyCompatible ¶
AnyCompatible checks if the version is compatible with any versions in a slice of versions.
func Compatible ¶
Compatible decides if the actual version is compatible with the required one.
Types ¶
type Semver ¶
type Semver struct {
// contains filtered or unexported fields
}
Semver models a semantic version (semver) major.minor.patch
func ParseVersionStr ¶
ParseVersionStr makes a *Semver from a version string (e.g. v3.1.0, 5.3.2, 7.3, etc.). The "v" prefix is optional, as are the minor and patch versions.
Click to show internal directories.
Click to hide internal directories.