version

package
v0.0.0-...-4eb781d Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 1 Imported by: 2

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