package
0.0.0-20220412152310-3a91a0518f06
Repository: https://github.com/hollson/dbcoder.git
Documentation: pkg.go.dev
# Functions
Arg returns the i'th command-line argument.
Args returns the non-flag command-line arguments.
Bool defines a bool flag with specified name, default value, and usage string.
BoolVar defines a bool flag with specified name, default value, and usage string.
ContainString 目标元素tar是否包含在container集合中.
字符串切片去重.
Duration defines a time.Duration flag with specified name, default value, and usage string.
DurationVar defines a time.Duration flag with specified name, default value, and usage string.
Float64 defines a float64 flag with specified name, default value, and usage string.
Float64Var defines a float64 flag with specified name, default value, and usage string.
Func defines a flag with the specified name and usage string.
raw中是否包含sub...中的所有子串 如: HasSub("datetime","date","time") => true HasSub("datetime","time") => false.
raw中是否包含sub...中的任意子串 如: HasSub("datetime","date") => true HasSub("datetime","time") => true.
Int defines an int flag with specified name, default value, and usage string.
Int64 defines an int64 flag with specified name, default value, and usage string.
Int64Var defines an int64 flag with specified name, default value, and usage string.
IntVar defines an int flag with specified name, default value, and usage string.
Lookup returns the Flag structure of the named command-line flag, returning nil if none exists.
判断tar是否与patterns中的任意规则所匹配.
NArg is the number of arguments remaining after flags have been processed.
NewFlagSet returns a new, empty flag set with the specified name and error handling property.
NFlag returns the number of command-line flags that have been set.
Parse parses the command-line flags from os.Args[1:].
Parsed reports whether the command-line flags have been parsed.
转换为帕斯卡命名 如: userName => UserName user_name => UserName.
修剪路径中的切割符.
PrintDefaults prints, to standard error unless configured otherwise, a usage message showing the default settings of all defined command-line flags.
遍历处理集合成员.
Set sets the value of the named command-line flag.
String defines a string flag with specified name, default value, and usage string.
StringVar defines a string flag with specified name, default value, and usage string.
Uint defines a uint flag with specified name, default value, and usage string.
Uint64 defines a uint64 flag with specified name, default value, and usage string.
Uint64Var defines a uint64 flag with specified name, default value, and usage string.
UintVar defines a uint flag with specified name, default value, and usage string.
UnquoteUsage extracts a back-quoted name from the usage string for a flag and returns it and the un-quoted usage.
Var defines a flag with the specified name and usage string.
Visit visits the command-line flags in lexicographical order, calling fn for each.
VisitAll visits the command-line flags in lexicographical order, calling fn for each.
# Constants
40: 黑色.
44: 蓝色.
46: 青色.
42: 绿色.
45: 品红/洋紫.
41: 红色.
47: 白色.
43: 黄色.
No description provided by the author
6: 快速闪烁.
5: 慢速闪烁.
1: 加粗.
8: 隐藏/暗格.
Return a descriptive error.
9: 删除.
Call os.Exit(2) or for -h/-help Exit(0).
2: 模糊.
30: 黑色.
34: 蓝色.
36: 青色.
32: 绿色.
35: 品红/洋紫.
31: 红色.
37: 白色.
33: 黄色.
3: 斜体.
Call panic with a descriptive error.
0: 重置.
7: 反白/反向显示.
4: 下划线.
# Variables
CommandLine is the default set of command-line flags, parsed from os.Args.
ErrHelp is the error returned if the -help or -h flag is invoked but no such flag is defined.
Usage prints a usage message documenting all defined command-line flags to CommandLine's output, which by default is os.Stderr.