version

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Overview

Package version holds build-time version information injected via ldflags. The Makefile sets buildVersion, buildCommit, and buildDate using -X linker flags; downstream builds and CI can substitute any values they choose.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commit

func Commit() string

Commit returns the full commit SHA, or "unknown" if unset.

func Date

func Date() string

Date returns the build date, or "unknown" if unset.

func GoVersion

func GoVersion() string

GoVersion returns the Go toolchain version used for the build.

func Platform

func Platform() string

Platform returns the OS/architecture pair.

func String

func String() string

String returns human-readable build information suitable for --version output. Components that were not set via ldflags are omitted rather than showing placeholder values.

func Version

func Version() string

Version returns the build version, or "(devel)" if unset.

Types

This section is empty.

Jump to

Keyboard shortcuts

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