semver

package
v17.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 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