buildinfo

package
v1.55.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Set via ldflags at build time:

-ldflags "-X github.com/Blakeolson21/no-slop/internal/buildinfo.Version=v1.0.0
          -X github.com/Blakeolson21/no-slop/internal/buildinfo.Commit=abc1234
          -X github.com/Blakeolson21/no-slop/internal/buildinfo.Date=2024-01-01
          -X github.com/Blakeolson21/no-slop/internal/buildinfo.TelemetryHost=https://a.example.com
          -X github.com/Blakeolson21/no-slop/internal/buildinfo.TelemetryWebsiteID=abc123"

Functions

func CurrentVersion

func CurrentVersion() string

func String

func String() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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