Documentation ¶ Index ¶ func SplitMetadata(m Metadata) (string, string, error) type Metadata type PreRelease type Version func Parse(v string) (Version, error) func (v Version) Commit() string func (v Version) Date() string func (v Version) Number() string func (v Version) Release() string func (v Version) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func SplitMetadata ¶ func SplitMetadata(m Metadata) (string, string, error) Types ¶ type Metadata ¶ type Metadata string type PreRelease ¶ type PreRelease string type Version ¶ type Version struct { Major int64 Minor int64 Patch int64 PreRelease PreRelease Metadata Metadata } func Parse ¶ func Parse(v string) (Version, error) func (Version) Commit ¶ func (v Version) Commit() string func (Version) Date ¶ func (v Version) Date() string func (Version) Number ¶ func (v Version) Number() string func (Version) Release ¶ func (v Version) Release() string func (Version) String ¶ func (v Version) String() string Source Files ¶ View all Source files metadata.goprerelease.goversion.go Click to show internal directories. Click to hide internal directories.