version

package
v2.2.9 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read() string

Read returns the version string. This is either the gitTag for released version or a combination of version number, commit hash and gitTreeState.

Types

type SemVer

type SemVer struct {
	Major int
	Minor int
	Patch int
}

func SemanticVersion

func SemanticVersion() SemVer

type Version

type Version struct {
	Version      string
	SemVer       SemVer
	BuildDate    string
	GitCommit    string
	GitTag       string
	GitTreeState string
	GoVersion    string
	Compiler     string
	Platform     string
}

Version contains version information

func ReadAll

func ReadAll() *Version

ReadAll returns the complete version information

Jump to

Keyboard shortcuts

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