Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SemVer ¶
type SemVer struct { Major int `json:"major"` Minor int `json:"minor"` Patch int `json:"patch"` Prerelease string `json:"prerelease"` BuildMetadata string `json:"buildmetadata"` }
SemVer represents a well formed semantic version (https://semver.org) with fields for the 5 major components of a version: major, minor, and patch versions, as well as prerelease and build metadata.
func ParseSemver ¶
ParseSemver takes in a raw string and converts it to a SemVer struct for easy access to individual components
func (SemVer) Fprint ¶
func (ver SemVer) Fprint(f io.WriteCloser) (int, error)
Fprint prints an output of a semantic version to a specific io.WriteCloser
Click to show internal directories.
Click to hide internal directories.