version

package
v1.1.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   string = "1.1.8"
	Commit    string = "unknown"
	BuildDate string = "unknown"
)

Version, Commit, and BuildDate are set via ldflags at build time.

go build -ldflags "-X nself/internal/version.Version=1.0.0 -X nself/internal/version.Commit=abc123 -X nself/internal/version.BuildDate=2026-01-01"

Functions

func GetBuildDate

func GetBuildDate() string

GetBuildDate returns the build date.

func GetCommit

func GetCommit() string

GetCommit returns the git commit hash.

func GetVersion

func GetVersion() string

GetVersion returns the build version string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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