version

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commit

func Commit() string

Commit returns the full git commit hash embedded in the binary. It first checks the ldflags-set value, then falls back to debug.ReadBuildInfo's vcs.revision, and finally returns "unknown".

func Short

func Short() string

Short returns the first 8 characters of the commit hash, suitable for display in logs and protocol messages.

Types

This section is empty.

Jump to

Keyboard shortcuts

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