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 implements Semantic Versioning according to https://semver.org.
func NewSemVerFromString ¶
NewSemVerFromString creates a new SemVer from the given version string and returns an error on failure.
func (*SemVer) AtLeast ¶
AtLeast checks whether this version is equal to or higher than fromVersion.
func (*SemVer) Between ¶
Between checks whether this version is between the from-version (including) and the to-version (excluding).
func (SemVer) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*SemVer) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
Click to show internal directories.
Click to hide internal directories.