Help us shape the future of Go! Take the 2026 Go Developer Survey

version

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 6 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 {
	Major, Minor, Patch int
	// Extra is everything past the first '-', which a CLI version carries and a meshStack
	// version does not: a prerelease, or the commit in a version the go command stamped.
	Extra string
}

func MustParse

func MustParse(s string) Version

func Parse

func Parse(s string) (Version, error)

func (Version) Compare

func (v Version) Compare(other Version) int

func (Version) IsRelease added in v0.3.0

func (v Version) IsRelease() bool

func (Version) Less

func (v Version) Less(other Version) bool

func (Version) MarshalText

func (v Version) MarshalText() ([]byte, error)

func (Version) String

func (v Version) String() (s string)

func (*Version) UnmarshalText

func (v *Version) UnmarshalText(text []byte) (err error)

Jump to

Keyboard shortcuts

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