version

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version should be set by build ldflags.
	// Release example: v1.0.6
	// Dev example: v1.0.6-dev+abc123def456
	Version = defaultVersion

	// Commit should be set by build ldflags (short or full git SHA).
	Commit = defaultCommit

	// BuildTime should be set by build ldflags using UTC RFC3339.
	BuildTime = defaultBuildTime
)

Functions

This section is empty.

Types

type Info

type Info struct {
	Version   string
	Source    string
	Commit    string
	BuildTime string
}

func Current

func Current() Info

Current returns normalized runtime build metadata.

Jump to

Keyboard shortcuts

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