Documentation
¶
Index ¶
- func InitFlags(flags *pflag.FlagSet)
- func PrintFlags(flags *pflag.FlagSet)
- func PrintSections(w io.Writer, fss NamedFlagSets, cols int)
- func WarnWordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
- func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
- type NamedFlagSets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintSections ¶
func PrintSections(w io.Writer, fss NamedFlagSets, cols int)
PrintSections 打印给定的标志集名称,并按最大列数进行分组 如果 cols 为零,则不进行换行
func WarnWordSepNormalizeFunc ¶
func WarnWordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
WarnWordSepNormalizeFunc 警告包含 "_" 分隔符的标志 当命令行参数中带有 "_" 时输出警告,并自动转换为 "-"
func WordSepNormalizeFunc ¶
func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
WordSepNormalizeFunc 单词分隔符规范化函数
Types ¶
Click to show internal directories.
Click to hide internal directories.