Documentation
¶
Overview ¶
Package verflag defines utility functions to handle command line flags related to version.
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 将检查是否传递了 `--version` 标志,如果是,则打印版本并退出.
func VersionVar ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.