示例#1
0
文件: opts.go 项目: beginnor/docker
func IPVar(value *net.IP, names []string, defaultValue, usage string) {
	flag.Var(NewIpOpt(value, defaultValue), names, usage)
}
示例#2
0
文件: opts.go 项目: beginnor/docker
func DnsSearchListVar(values *[]string, names []string, usage string) {
	flag.Var(newListOptsRef(values, ValidateDnsSearch), names, usage)
}
示例#3
0
文件: opts.go 项目: beginnor/docker
func HostListVar(values *[]string, names []string, usage string) {
	flag.Var(newListOptsRef(values, api.ValidateHost), names, usage)
}
示例#4
0
文件: opts.go 项目: beginnor/docker
func IPListVar(values *[]string, names []string, usage string) {
	flag.Var(newListOptsRef(values, ValidateIPAddress), names, usage)
}
示例#5
0
文件: opts.go 项目: beginnor/docker
func ListVar(values *[]string, names []string, usage string) {
	flag.Var(newListOptsRef(values, nil), names, usage)
}