command
Version:
v0.0.0-...-908d554
Opens a new window with list of versions in this module.
Published: Nov 2, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Flags
演示如何使用命令行的flag参数
运行示例
INT_FLAG=109 go run main.go --string_flag="串串来了" --bool_flag=true
可以看到程序打印出获取到的flag参数信息
字符串flag值: 串串来了
字符串缺省值: 我是缺省值
整形flag值:109
布尔值flag值:true
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.