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 ¶
Click to show internal directories.
Click to hide internal directories.