verflag

package
v0.0.0-...-49bf833 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VersionFalse not specified
	VersionFalse versionValue = iota
	// VersionTrue specified as true
	VersionTrue
	// VersionRaw specified as true and use raw format
	VersionRaw
)

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(fs *pflag.FlagSet)

func PrintAndExitIfRequested

func PrintAndExitIfRequested()

func Version

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

func VersionVar

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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