Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidVersion = errors.Base("invalid version")
)
Functions ¶
This section is empty.
Types ¶
type SemVer ¶
type SemVer struct {
Major int // Major version number.
Minor int // Minor version number.
Patch int // Patch number.
Commit string // VCS commit identifier.
}
Semantic version structure.
func MakeSemVer ¶
Make a new semantic version from the given string.
func (*SemVer) FromString ¶
Convert numeric version to components.
Click to show internal directories.
Click to hide internal directories.