buildinfo

package
v0.13.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "dev"
	Commit  = "none"
	Date    = "unknown"
)

Version, Commit, and Date are injected at build time via ldflags. They are the single source of truth for build information across the CLI.

Functions

func Set

func Set(version, commit, date string)

Set stores the build-time values injected via ldflags. Call this once at program startup before any other package reads these vars.

func UserAgent

func UserAgent() string

UserAgent returns the User-Agent string for HTTP requests. Format: runware-cli/VERSION (commit/COMMIT; built DATE) Go/GOVERSION

Types

This section is empty.

Jump to

Keyboard shortcuts

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