Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckConstraint ¶
CheckConstraint returns whether version fulfills given constraint.
func MasterVersion ¶
MasterVersion returns whether provided version string originates from master branch.
func Short ¶
Short excludes any metadata or pre-release information. For example, for a version "1.2.3-20200101.b41b3dbs1b", it will return "1.2.3". If provided string isn't version, it will return input string.
func TransformReleaseCandidate ¶
TransformReleaseCandidate replaces `.rcX` in version string with `~` instead of the dot.
func TrimMaster ¶
TrimMaster returns version string without master branch bloat breaking semantic format constraints.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.