version

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package version exposes build-time version metadata (git version, commit, and build date) injected via -ldflags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDate

func BuildDate() string

BuildDate returns the build date.

func GetFullVersion

func GetFullVersion() string

GetFullVersion returns the complete version with 'v' prefix as used in git tags.

func GetVersion

func GetVersion() string

GetVersion returns the version without the 'v' prefix for use in manifests and packages.

func GitCommit

func GitCommit() string

GitCommit returns the git commit hash.

func GitVersion

func GitVersion() string

GitVersion returns the semantic version (tag) or pre-release id.

func Info

func Info() string

Info returns a human readable single-line version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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