semver

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL