verflag

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0, BSD-3-Clause, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VersionFalse versionValue = 0
	VersionTrue  versionValue = 1
	VersionRaw   versionValue = 2
)

Variables

This section is empty.

Functions

func PrintAndExitIfRequested

func PrintAndExitIfRequested()

PrintAndExitIfRequested will check if the -version flag was passed and print the version and exit if passed.

func RequestVersion

func RequestVersion(w http.ResponseWriter, r *http.Request)

RequestVersion print version

func Version

func Version(name string, value versionValue, usage string) *versionValue

Version return version flag

func VersionVar

func VersionVar(p *versionValue, name string, value versionValue, usage string)

VersionVar add version flag

Types

This section is empty.

Jump to

Keyboard shortcuts

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