Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SemVer ¶
SemVer represents a semantic versioning
func Parse ¶
Parse reads a semantic version string and returns a SemVer. If the second return value is false, it implies that the input semver was incorrect.
func (*SemVer) AddMetadata ¶ added in v0.5.0
AddMetadata adds a new metadata identifier to the current semantic version. This is a shortcut for v.Metadata = append(v.Metadata, s...).
func (*SemVer) AddPrerelease ¶ added in v0.5.0
AddPrerelease adds a new pre-release identifier to the current semantic version. This is a shortcut for v.Prerelease = append(v.Prerelease, s...).
Click to show internal directories.
Click to hide internal directories.