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 将检查 -version 是否被传递,如果是,则打印版本并退出。
func VersionVar ¶
VersionVar 定义了一个具有指定名称和用法字符串的 pflag。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.