about

package
v1.1.52-test Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the current version of the app, generated at build time
	Version   = "dev"
	Epoch     = "-1"
	Timestamp = "dev"
	Build     = "dev"
)

Build information stamped at link time. Each service's Makefile/Dockerfile passes `-ldflags "-X github.com/controlplane-com/libs-go/pkg/about.<Var>=..."`; the -X flag works for any package that is part of the build, so one shared package serves every binary.

Functions

func ServeAbout

func ServeAbout(writer http.ResponseWriter, _ *http.Request)

ServeAbout writes the build information as JSON. Usable directly as an http.HandlerFunc.

Types

type Ab

type Ab struct {
	Version   string `json:"version"`
	Timestamp string `json:"timestamp"`
	Epoch     string `json:"epoch"`
	Build     string `json:"build"`
}
var About Ab

Jump to

Keyboard shortcuts

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