version

package
v4.0.0-...-ae7b6de Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package version executes and returns the version string for the currently running process.

Index

Constants

View Source
const (
	Phase0 = iota
	Altair
	Bellatrix
	Capella
	Deneb
)

Variables

View Source
var ErrUnrecognizedVersionName = errors.New("version name doesn't map to a known value in the enum")

ErrUnrecognizedVersionName means a string does not match the list of canonical version names.

Functions

func All

func All() []int

All returns a list of all known fork versions.

func BuildData

func BuildData() string

BuildData returns the git tag and commit of the current build.

func FromString

func FromString(name string) (int, error)

FromString translates a canonical version name to the version number.

func SemanticVersion

func SemanticVersion() string

SemanticVersion returns the Major.Minor.Patch version of this build.

func String

func String(version int) string

String returns the canonical string form of a version. Unrecognized versions won't generate an error and are represented by the string "unknown version".

func Version

func Version() string

Version returns the version string of this build.

Types

This section is empty.

Jump to

Keyboard shortcuts

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