buildinfo

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBuildInfo

func FromBuildInfo(info *debug.BuildInfo) string

FromBuildInfo converts Go build metadata into a user-facing CLI version.

func Version

func Version(override string) string

Version returns an explicit release version when supplied, otherwise it derives the tagged module version or source revision from Go build metadata.

Types

This section is empty.

Jump to

Keyboard shortcuts

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