version

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ServiceName represents the name of the service.
	ServiceName = "{{service}}"

	// RefName represents a reference name.
	RefName = "{{dirty}}"

	// Commit represents the SHA-1 hash of the current git commit.
	Commit = "{{gitsha1}}"

	// BuildTime represents the timestamp of when the build occurred.
	BuildTime = "{{buildtime}}"

	// FullVersion represents the full version of the service,
	//  generated by concatenating the values of RefName, Commit, and BuildTime.
	//  It follows the format RefName@vCommit-BuildTime.
	FullVersion = RefName + "-" + BuildTime + "@" + Commit
)

Functions

func NewVersionServiceHandler

func NewVersionServiceHandler() (string, http.Handler)

Types

This section is empty.

Jump to

Keyboard shortcuts

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