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
}
Semver validator to do checks based on the semver 2.0.0 spec.
func (*Semver) GreaterThanOrEqual ¶
GreaterThanOrEqual checks if the given version is greater than or equal to the compare version.
func (*Semver) SmallerThanOrEqual ¶
SmallerThanOrEqual checks if the given version is smaller than or equal to the compare version.
type Versioning ¶
type Versioning interface { Valid(version string) bool InRange(version string, start string, end string) (bool, error) GreaterThanOrEqual(version string, compare string) (bool, error) SmallerThanOrEqual(version string, compare string) (bool, error) }
Versioning represents an object that provides validation tools to check a versioning system's versions.
Click to show internal directories.
Click to hide internal directories.