Help us shape the future of Go! Take the 2026 Go Developer Survey

buildinfo

package
v0.32.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package buildinfo provides build metadata and update checking for quad-ops.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Commit is the VCS revision hash.
	Commit = "none"
	// Date is the VCS commit timestamp.
	Date = "unknown"
	// GoVersion is the Go toolchain version used to build the binary.
	GoVersion = "unknown"
	// Version is the release version, set via ldflags by goreleaser.
	Version = "dev"
)

Functions

func IsDev

func IsDev() bool

IsDev reports whether this is a development build.

Types

type UpdateStatus

type UpdateStatus struct {
	Available  bool
	NewVersion string
	AssetURL   string
	AssetName  string
}

UpdateStatus represents the result of an update check.

func CheckForUpdates

func CheckForUpdates(ctx context.Context) (*UpdateStatus, error)

CheckForUpdates checks GitHub for a newer release. Returns an UpdateStatus and any error encountered.

Jump to

Keyboard shortcuts

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