version

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Commit string
	Dirty  bool
}

func (Build) HasCommit

func (b Build) HasCommit() bool

func (Build) ShortCommit

func (b Build) ShortCommit() Build

func (Build) String

func (b Build) String() string

type Core

type Core struct {
	Major uint
	Minor uint
	Patch uint
}

func (Core) String

func (c Core) String() string

type Info

type Info struct {
	Version SemVer
	Time    string
}

func Get

func Get() Info

func (Info) String

func (i Info) String() string

type PreRelease

type PreRelease string

func (PreRelease) HasValue

func (p PreRelease) HasValue() bool

func (PreRelease) String

func (p PreRelease) String() string

type SemVer

type SemVer struct {
	Core       Core
	PreRelease PreRelease
	Build      Build
}

func MustParseSemVerCore

func MustParseSemVerCore(s string) SemVer

func ParseSemVerCore

func ParseSemVerCore(s string) (SemVer, error)

func (SemVer) String

func (v SemVer) String() string

Jump to

Keyboard shortcuts

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