build

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetInfo

func SetInfo(i Info)

SetInfo sets the build information

func SetTelemetrySecret added in v1.4.0

func SetTelemetrySecret(secret string)

SetTelemetrySecret stores the build-time telemetry signing secret.

func TelemetrySecret added in v1.4.0

func TelemetrySecret() string

TelemetrySecret returns the build-time telemetry signing secret (empty when not injected at build time).

Types

type Info

type Info struct {
	Version   string
	Commit    string
	Date      string
	GoVersion string
}

Info contains build information

func GetInfo

func GetInfo() Info

GetInfo returns the build information

func (Info) ShortString

func (i Info) ShortString() string

ShortString returns just the version

func (Info) String

func (i Info) String() string

String returns a formatted version string

Jump to

Keyboard shortcuts

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