Documentation ¶
Overview ¶
Package semantic provides utilities for parsing and creating semver2.0 tags.
For more information, see https://semver.org/
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tag ¶
func New ¶
New creates a new Tag with the most basic amount of information, which includes the major, minor, and patch version levels.
Examples of a basic tag:
v1.0.0 v3.20.100
func New2 ¶
New2 creates a new Tag with the basic version information, plus an additional associated pre-release suffix.
The pre-release information is appended to the end of a version string, denoted with a '-' prefix.
Examples of a tag with "pre-release" information:
v1.0.0-alpha v1.0.0-rc1
func New3 ¶ added in v0.1.0
New3 creates a new Tag with the basic version information, plus an additional associated pre-release suffix plus an additional build-metadata suffix.
The pre-release information is appended to the end of a version string, but before the build-metadata, denoted with a '-' prefix.
The build-metadata information is appended to the end of a version string, denoted with a '+' prefix.
Examples of a tag with "pre-release" and "build-metadata" information:
v1.0.0-beta+exp.sha.5114f85 v1.0.0-rc1+20130313144700 1.0.0-alpha+001
func New4 ¶ added in v0.2.0
New4 creates a new Tag with basic version information, plus an additional associated build-metadata suffix.
The build-metadata information is appended to the end of a version string, denoted with a '+' prefix.
Examples of a tag with "build-metadata" information:
v1.0.0+exp.sha.5114f85 v1.0.0+20130313144700