semver

package
v17.3.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version struct {
	Raw   string
	Major uint64
	Minor uint64
	Patch uint64

	// Helpers
	MajorMinor string
}

Version represents a semantic version It's implemented according to https://semver.org Limitations: it currently does not expose the pre-release and build metadata extension data.

func NewVersion

func NewVersion(v string) (Version, error)

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