version

package
v0.0.0-...-2f3eae6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Revision = "dev"

Revision is the global build revision from source control as used by the ServerHeader middleware, to be set using compiler ldflags like: `-ldflags="-X github.com/cuvva/cuvva-public-go/lib/version.Revision=$(git rev-parse HEAD)"`

View Source
var Truncated = genTruncated()

Truncated is up to 7 characters of Revision - so git hashes look as they are typically shown in GUIs, on GitHub, etc.

Functions

func Header(app string) func(http.Handler) http.Handler

Header returns a middleware handler that sets the `Server` header to the name of the application and the (truncated) build revision.

Types

This section is empty.

Jump to

Keyboard shortcuts

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