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 定义了一个具有指定名称和用法的标志.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.