code
stringlengths 12
335k
| docstring
stringlengths 20
20.8k
| func_name
stringlengths 1
105
| language
stringclasses 1
value | repo
stringclasses 498
values | path
stringlengths 5
172
| url
stringlengths 43
235
| license
stringclasses 4
values |
---|---|---|---|---|---|---|---|
func Float64VarP(p *float64, name, shorthand string, value float64, usage string) {
CommandLine.VarP(newFloat64Value(value, p), name, shorthand, usage)
} | Float64VarP is like Float64Var, but accepts a shorthand letter that can be used after a single dash. | Float64VarP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/float64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/float64.go | Apache-2.0 |
func (f *FlagSet) Float64(name string, value float64, usage string) *float64 {
p := new(float64)
f.Float64VarP(p, name, "", value, usage)
return p
} | Float64 defines a float64 flag with specified name, default value, and usage string.
The return value is the address of a float64 variable that stores the value of the flag. | Float64 | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/float64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/float64.go | Apache-2.0 |
func (f *FlagSet) Float64P(name, shorthand string, value float64, usage string) *float64 {
p := new(float64)
f.Float64VarP(p, name, shorthand, value, usage)
return p
} | Float64P is like Float64, but accepts a shorthand letter that can be used after a single dash. | Float64P | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/float64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/float64.go | Apache-2.0 |
func Float64(name string, value float64, usage string) *float64 {
return CommandLine.Float64P(name, "", value, usage)
} | Float64 defines a float64 flag with specified name, default value, and usage string.
The return value is the address of a float64 variable that stores the value of the flag. | Float64 | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/float64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/float64.go | Apache-2.0 |
func Float64P(name, shorthand string, value float64, usage string) *float64 {
return CommandLine.Float64P(name, shorthand, value, usage)
} | Float64P is like Float64, but accepts a shorthand letter that can be used after a single dash. | Float64P | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/float64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/float64.go | Apache-2.0 |
func (f *FlagSet) GetInt64(name string) (int64, error) {
val, err := f.getFlagType(name, "int64", int64Conv)
if err != nil {
return 0, err
}
return val.(int64), nil
} | GetInt64 return the int64 value of a flag with the given name | GetInt64 | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int64.go | Apache-2.0 |
func (f *FlagSet) Int64Var(p *int64, name string, value int64, usage string) {
f.VarP(newInt64Value(value, p), name, "", usage)
} | Int64Var defines an int64 flag with specified name, default value, and usage string.
The argument p points to an int64 variable in which to store the value of the flag. | Int64Var | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int64.go | Apache-2.0 |
func (f *FlagSet) Int64VarP(p *int64, name, shorthand string, value int64, usage string) {
f.VarP(newInt64Value(value, p), name, shorthand, usage)
} | Int64VarP is like Int64Var, but accepts a shorthand letter that can be used after a single dash. | Int64VarP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int64.go | Apache-2.0 |
func Int64Var(p *int64, name string, value int64, usage string) {
CommandLine.VarP(newInt64Value(value, p), name, "", usage)
} | Int64Var defines an int64 flag with specified name, default value, and usage string.
The argument p points to an int64 variable in which to store the value of the flag. | Int64Var | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int64.go | Apache-2.0 |
func Int64VarP(p *int64, name, shorthand string, value int64, usage string) {
CommandLine.VarP(newInt64Value(value, p), name, shorthand, usage)
} | Int64VarP is like Int64Var, but accepts a shorthand letter that can be used after a single dash. | Int64VarP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int64.go | Apache-2.0 |
func (f *FlagSet) Int64(name string, value int64, usage string) *int64 {
p := new(int64)
f.Int64VarP(p, name, "", value, usage)
return p
} | Int64 defines an int64 flag with specified name, default value, and usage string.
The return value is the address of an int64 variable that stores the value of the flag. | Int64 | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int64.go | Apache-2.0 |
func (f *FlagSet) Int64P(name, shorthand string, value int64, usage string) *int64 {
p := new(int64)
f.Int64VarP(p, name, shorthand, value, usage)
return p
} | Int64P is like Int64, but accepts a shorthand letter that can be used after a single dash. | Int64P | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int64.go | Apache-2.0 |
func Int64(name string, value int64, usage string) *int64 {
return CommandLine.Int64P(name, "", value, usage)
} | Int64 defines an int64 flag with specified name, default value, and usage string.
The return value is the address of an int64 variable that stores the value of the flag. | Int64 | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int64.go | Apache-2.0 |
func Int64P(name, shorthand string, value int64, usage string) *int64 {
return CommandLine.Int64P(name, shorthand, value, usage)
} | Int64P is like Int64, but accepts a shorthand letter that can be used after a single dash. | Int64P | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int64.go | Apache-2.0 |
func (f *FlagSet) GetInt64Slice(name string) ([]int64, error) {
val, err := f.getFlagType(name, "int64Slice", int64SliceConv)
if err != nil {
return []int64{}, err
}
return val.([]int64), nil
} | GetInt64Slice return the []int64 value of a flag with the given name | GetInt64Slice | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int64_slice.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int64_slice.go | Apache-2.0 |
func (f *FlagSet) Int64SliceVar(p *[]int64, name string, value []int64, usage string) {
f.VarP(newInt64SliceValue(value, p), name, "", usage)
} | Int64SliceVar defines a int64Slice flag with specified name, default value, and usage string.
The argument p points to a []int64 variable in which to store the value of the flag. | Int64SliceVar | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int64_slice.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int64_slice.go | Apache-2.0 |
func (f *FlagSet) Int64SliceVarP(p *[]int64, name, shorthand string, value []int64, usage string) {
f.VarP(newInt64SliceValue(value, p), name, shorthand, usage)
} | Int64SliceVarP is like Int64SliceVar, but accepts a shorthand letter that can be used after a single dash. | Int64SliceVarP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int64_slice.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int64_slice.go | Apache-2.0 |
func Int64SliceVar(p *[]int64, name string, value []int64, usage string) {
CommandLine.VarP(newInt64SliceValue(value, p), name, "", usage)
} | Int64SliceVar defines a int64[] flag with specified name, default value, and usage string.
The argument p points to a int64[] variable in which to store the value of the flag. | Int64SliceVar | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int64_slice.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int64_slice.go | Apache-2.0 |
func Int64SliceVarP(p *[]int64, name, shorthand string, value []int64, usage string) {
CommandLine.VarP(newInt64SliceValue(value, p), name, shorthand, usage)
} | Int64SliceVarP is like Int64SliceVar, but accepts a shorthand letter that can be used after a single dash. | Int64SliceVarP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int64_slice.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int64_slice.go | Apache-2.0 |
func (f *FlagSet) Int64Slice(name string, value []int64, usage string) *[]int64 {
p := []int64{}
f.Int64SliceVarP(&p, name, "", value, usage)
return &p
} | Int64Slice defines a []int64 flag with specified name, default value, and usage string.
The return value is the address of a []int64 variable that stores the value of the flag. | Int64Slice | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int64_slice.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int64_slice.go | Apache-2.0 |
func (f *FlagSet) Int64SliceP(name, shorthand string, value []int64, usage string) *[]int64 {
p := []int64{}
f.Int64SliceVarP(&p, name, shorthand, value, usage)
return &p
} | Int64SliceP is like Int64Slice, but accepts a shorthand letter that can be used after a single dash. | Int64SliceP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int64_slice.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int64_slice.go | Apache-2.0 |
func Int64Slice(name string, value []int64, usage string) *[]int64 {
return CommandLine.Int64SliceP(name, "", value, usage)
} | Int64Slice defines a []int64 flag with specified name, default value, and usage string.
The return value is the address of a []int64 variable that stores the value of the flag. | Int64Slice | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int64_slice.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int64_slice.go | Apache-2.0 |
func Int64SliceP(name, shorthand string, value []int64, usage string) *[]int64 {
return CommandLine.Int64SliceP(name, shorthand, value, usage)
} | Int64SliceP is like Int64Slice, but accepts a shorthand letter that can be used after a single dash. | Int64SliceP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int64_slice.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int64_slice.go | Apache-2.0 |
func (f *FlagSet) GetInt8(name string) (int8, error) {
val, err := f.getFlagType(name, "int8", int8Conv)
if err != nil {
return 0, err
}
return val.(int8), nil
} | GetInt8 return the int8 value of a flag with the given name | GetInt8 | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int8.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int8.go | Apache-2.0 |
func (f *FlagSet) Int8Var(p *int8, name string, value int8, usage string) {
f.VarP(newInt8Value(value, p), name, "", usage)
} | Int8Var defines an int8 flag with specified name, default value, and usage string.
The argument p points to an int8 variable in which to store the value of the flag. | Int8Var | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int8.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int8.go | Apache-2.0 |
func (f *FlagSet) Int8VarP(p *int8, name, shorthand string, value int8, usage string) {
f.VarP(newInt8Value(value, p), name, shorthand, usage)
} | Int8VarP is like Int8Var, but accepts a shorthand letter that can be used after a single dash. | Int8VarP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int8.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int8.go | Apache-2.0 |
func Int8Var(p *int8, name string, value int8, usage string) {
CommandLine.VarP(newInt8Value(value, p), name, "", usage)
} | Int8Var defines an int8 flag with specified name, default value, and usage string.
The argument p points to an int8 variable in which to store the value of the flag. | Int8Var | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int8.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int8.go | Apache-2.0 |
func Int8VarP(p *int8, name, shorthand string, value int8, usage string) {
CommandLine.VarP(newInt8Value(value, p), name, shorthand, usage)
} | Int8VarP is like Int8Var, but accepts a shorthand letter that can be used after a single dash. | Int8VarP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int8.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int8.go | Apache-2.0 |
func (f *FlagSet) Int8(name string, value int8, usage string) *int8 {
p := new(int8)
f.Int8VarP(p, name, "", value, usage)
return p
} | Int8 defines an int8 flag with specified name, default value, and usage string.
The return value is the address of an int8 variable that stores the value of the flag. | Int8 | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int8.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int8.go | Apache-2.0 |
func (f *FlagSet) Int8P(name, shorthand string, value int8, usage string) *int8 {
p := new(int8)
f.Int8VarP(p, name, shorthand, value, usage)
return p
} | Int8P is like Int8, but accepts a shorthand letter that can be used after a single dash. | Int8P | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int8.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int8.go | Apache-2.0 |
func Int8(name string, value int8, usage string) *int8 {
return CommandLine.Int8P(name, "", value, usage)
} | Int8 defines an int8 flag with specified name, default value, and usage string.
The return value is the address of an int8 variable that stores the value of the flag. | Int8 | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int8.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int8.go | Apache-2.0 |
func Int8P(name, shorthand string, value int8, usage string) *int8 {
return CommandLine.Int8P(name, shorthand, value, usage)
} | Int8P is like Int8, but accepts a shorthand letter that can be used after a single dash. | Int8P | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int8.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int8.go | Apache-2.0 |
func (f *FlagSet) GetIP(name string) (net.IP, error) {
val, err := f.getFlagType(name, "ip", ipConv)
if err != nil {
return nil, err
}
return val.(net.IP), nil
} | GetIP return the net.IP value of a flag with the given name | GetIP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/ip.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ip.go | Apache-2.0 |
func (f *FlagSet) IPVar(p *net.IP, name string, value net.IP, usage string) {
f.VarP(newIPValue(value, p), name, "", usage)
} | IPVar defines an net.IP flag with specified name, default value, and usage string.
The argument p points to an net.IP variable in which to store the value of the flag. | IPVar | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/ip.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ip.go | Apache-2.0 |
func (f *FlagSet) IPVarP(p *net.IP, name, shorthand string, value net.IP, usage string) {
f.VarP(newIPValue(value, p), name, shorthand, usage)
} | IPVarP is like IPVar, but accepts a shorthand letter that can be used after a single dash. | IPVarP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/ip.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ip.go | Apache-2.0 |
func IPVar(p *net.IP, name string, value net.IP, usage string) {
CommandLine.VarP(newIPValue(value, p), name, "", usage)
} | IPVar defines an net.IP flag with specified name, default value, and usage string.
The argument p points to an net.IP variable in which to store the value of the flag. | IPVar | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/ip.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ip.go | Apache-2.0 |
func IPVarP(p *net.IP, name, shorthand string, value net.IP, usage string) {
CommandLine.VarP(newIPValue(value, p), name, shorthand, usage)
} | IPVarP is like IPVar, but accepts a shorthand letter that can be used after a single dash. | IPVarP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/ip.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ip.go | Apache-2.0 |
func (f *FlagSet) IP(name string, value net.IP, usage string) *net.IP {
p := new(net.IP)
f.IPVarP(p, name, "", value, usage)
return p
} | IP defines an net.IP flag with specified name, default value, and usage string.
The return value is the address of an net.IP variable that stores the value of the flag. | IP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/ip.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ip.go | Apache-2.0 |
func (f *FlagSet) IPP(name, shorthand string, value net.IP, usage string) *net.IP {
p := new(net.IP)
f.IPVarP(p, name, shorthand, value, usage)
return p
} | IPP is like IP, but accepts a shorthand letter that can be used after a single dash. | IPP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/ip.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ip.go | Apache-2.0 |
func IP(name string, value net.IP, usage string) *net.IP {
return CommandLine.IPP(name, "", value, usage)
} | IP defines an net.IP flag with specified name, default value, and usage string.
The return value is the address of an net.IP variable that stores the value of the flag. | IP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/ip.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ip.go | Apache-2.0 |
func IPP(name, shorthand string, value net.IP, usage string) *net.IP {
return CommandLine.IPP(name, shorthand, value, usage)
} | IPP is like IP, but accepts a shorthand letter that can be used after a single dash. | IPP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/ip.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ip.go | Apache-2.0 |
func (f *FlagSet) GetInt32Slice(name string) ([]int32, error) {
val, err := f.getFlagType(name, "int32Slice", int32SliceConv)
if err != nil {
return []int32{}, err
}
return val.([]int32), nil
} | GetInt32Slice return the []int32 value of a flag with the given name | GetInt32Slice | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int32_slice.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int32_slice.go | Apache-2.0 |
func (f *FlagSet) Int32SliceVar(p *[]int32, name string, value []int32, usage string) {
f.VarP(newInt32SliceValue(value, p), name, "", usage)
} | Int32SliceVar defines a int32Slice flag with specified name, default value, and usage string.
The argument p points to a []int32 variable in which to store the value of the flag. | Int32SliceVar | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int32_slice.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int32_slice.go | Apache-2.0 |
func (f *FlagSet) Int32SliceVarP(p *[]int32, name, shorthand string, value []int32, usage string) {
f.VarP(newInt32SliceValue(value, p), name, shorthand, usage)
} | Int32SliceVarP is like Int32SliceVar, but accepts a shorthand letter that can be used after a single dash. | Int32SliceVarP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int32_slice.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int32_slice.go | Apache-2.0 |
func Int32SliceVar(p *[]int32, name string, value []int32, usage string) {
CommandLine.VarP(newInt32SliceValue(value, p), name, "", usage)
} | Int32SliceVar defines a int32[] flag with specified name, default value, and usage string.
The argument p points to a int32[] variable in which to store the value of the flag. | Int32SliceVar | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int32_slice.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int32_slice.go | Apache-2.0 |
func Int32SliceVarP(p *[]int32, name, shorthand string, value []int32, usage string) {
CommandLine.VarP(newInt32SliceValue(value, p), name, shorthand, usage)
} | Int32SliceVarP is like Int32SliceVar, but accepts a shorthand letter that can be used after a single dash. | Int32SliceVarP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int32_slice.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int32_slice.go | Apache-2.0 |
func (f *FlagSet) Int32Slice(name string, value []int32, usage string) *[]int32 {
p := []int32{}
f.Int32SliceVarP(&p, name, "", value, usage)
return &p
} | Int32Slice defines a []int32 flag with specified name, default value, and usage string.
The return value is the address of a []int32 variable that stores the value of the flag. | Int32Slice | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int32_slice.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int32_slice.go | Apache-2.0 |
func (f *FlagSet) Int32SliceP(name, shorthand string, value []int32, usage string) *[]int32 {
p := []int32{}
f.Int32SliceVarP(&p, name, shorthand, value, usage)
return &p
} | Int32SliceP is like Int32Slice, but accepts a shorthand letter that can be used after a single dash. | Int32SliceP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int32_slice.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int32_slice.go | Apache-2.0 |
func Int32Slice(name string, value []int32, usage string) *[]int32 {
return CommandLine.Int32SliceP(name, "", value, usage)
} | Int32Slice defines a []int32 flag with specified name, default value, and usage string.
The return value is the address of a []int32 variable that stores the value of the flag. | Int32Slice | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int32_slice.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int32_slice.go | Apache-2.0 |
func Int32SliceP(name, shorthand string, value []int32, usage string) *[]int32 {
return CommandLine.Int32SliceP(name, shorthand, value, usage)
} | Int32SliceP is like Int32Slice, but accepts a shorthand letter that can be used after a single dash. | Int32SliceP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int32_slice.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int32_slice.go | Apache-2.0 |
func (f *FlagSet) GetBool(name string) (bool, error) {
val, err := f.getFlagType(name, "bool", boolConv)
if err != nil {
return false, err
}
return val.(bool), nil
} | GetBool return the bool value of a flag with the given name | GetBool | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/bool.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/bool.go | Apache-2.0 |
func (f *FlagSet) BoolVar(p *bool, name string, value bool, usage string) {
f.BoolVarP(p, name, "", value, usage)
} | BoolVar defines a bool flag with specified name, default value, and usage string.
The argument p points to a bool variable in which to store the value of the flag. | BoolVar | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/bool.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/bool.go | Apache-2.0 |
func (f *FlagSet) BoolVarP(p *bool, name, shorthand string, value bool, usage string) {
flag := f.VarPF(newBoolValue(value, p), name, shorthand, usage)
flag.NoOptDefVal = "true"
} | BoolVarP is like BoolVar, but accepts a shorthand letter that can be used after a single dash. | BoolVarP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/bool.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/bool.go | Apache-2.0 |
func BoolVar(p *bool, name string, value bool, usage string) {
BoolVarP(p, name, "", value, usage)
} | BoolVar defines a bool flag with specified name, default value, and usage string.
The argument p points to a bool variable in which to store the value of the flag. | BoolVar | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/bool.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/bool.go | Apache-2.0 |
func BoolVarP(p *bool, name, shorthand string, value bool, usage string) {
flag := CommandLine.VarPF(newBoolValue(value, p), name, shorthand, usage)
flag.NoOptDefVal = "true"
} | BoolVarP is like BoolVar, but accepts a shorthand letter that can be used after a single dash. | BoolVarP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/bool.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/bool.go | Apache-2.0 |
func (f *FlagSet) Bool(name string, value bool, usage string) *bool {
return f.BoolP(name, "", value, usage)
} | Bool defines a bool flag with specified name, default value, and usage string.
The return value is the address of a bool variable that stores the value of the flag. | Bool | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/bool.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/bool.go | Apache-2.0 |
func (f *FlagSet) BoolP(name, shorthand string, value bool, usage string) *bool {
p := new(bool)
f.BoolVarP(p, name, shorthand, value, usage)
return p
} | BoolP is like Bool, but accepts a shorthand letter that can be used after a single dash. | BoolP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/bool.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/bool.go | Apache-2.0 |
func Bool(name string, value bool, usage string) *bool {
return BoolP(name, "", value, usage)
} | Bool defines a bool flag with specified name, default value, and usage string.
The return value is the address of a bool variable that stores the value of the flag. | Bool | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/bool.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/bool.go | Apache-2.0 |
func BoolP(name, shorthand string, value bool, usage string) *bool {
b := CommandLine.BoolP(name, shorthand, value, usage)
return b
} | BoolP is like Bool, but accepts a shorthand letter that can be used after a single dash. | BoolP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/bool.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/bool.go | Apache-2.0 |
func (f *FlagSet) GetStringToInt64(name string) (map[string]int64, error) {
val, err := f.getFlagType(name, "stringToInt64", stringToInt64Conv)
if err != nil {
return map[string]int64{}, err
}
return val.(map[string]int64), nil
} | GetStringToInt64 return the map[string]int64 value of a flag with the given name | GetStringToInt64 | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/string_to_int64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_int64.go | Apache-2.0 |
func (f *FlagSet) StringToInt64Var(p *map[string]int64, name string, value map[string]int64, usage string) {
f.VarP(newStringToInt64Value(value, p), name, "", usage)
} | StringToInt64Var defines a string flag with specified name, default value, and usage string.
The argument p point64s to a map[string]int64 variable in which to store the values of the multiple flags.
The value of each argument will not try to be separated by comma | StringToInt64Var | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/string_to_int64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_int64.go | Apache-2.0 |
func (f *FlagSet) StringToInt64VarP(p *map[string]int64, name, shorthand string, value map[string]int64, usage string) {
f.VarP(newStringToInt64Value(value, p), name, shorthand, usage)
} | StringToInt64VarP is like StringToInt64Var, but accepts a shorthand letter that can be used after a single dash. | StringToInt64VarP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/string_to_int64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_int64.go | Apache-2.0 |
func StringToInt64Var(p *map[string]int64, name string, value map[string]int64, usage string) {
CommandLine.VarP(newStringToInt64Value(value, p), name, "", usage)
} | StringToInt64Var defines a string flag with specified name, default value, and usage string.
The argument p point64s to a map[string]int64 variable in which to store the value of the flag.
The value of each argument will not try to be separated by comma | StringToInt64Var | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/string_to_int64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_int64.go | Apache-2.0 |
func StringToInt64VarP(p *map[string]int64, name, shorthand string, value map[string]int64, usage string) {
CommandLine.VarP(newStringToInt64Value(value, p), name, shorthand, usage)
} | StringToInt64VarP is like StringToInt64Var, but accepts a shorthand letter that can be used after a single dash. | StringToInt64VarP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/string_to_int64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_int64.go | Apache-2.0 |
func (f *FlagSet) StringToInt64(name string, value map[string]int64, usage string) *map[string]int64 {
p := map[string]int64{}
f.StringToInt64VarP(&p, name, "", value, usage)
return &p
} | StringToInt64 defines a string flag with specified name, default value, and usage string.
The return value is the address of a map[string]int64 variable that stores the value of the flag.
The value of each argument will not try to be separated by comma | StringToInt64 | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/string_to_int64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_int64.go | Apache-2.0 |
func (f *FlagSet) StringToInt64P(name, shorthand string, value map[string]int64, usage string) *map[string]int64 {
p := map[string]int64{}
f.StringToInt64VarP(&p, name, shorthand, value, usage)
return &p
} | StringToInt64P is like StringToInt64, but accepts a shorthand letter that can be used after a single dash. | StringToInt64P | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/string_to_int64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_int64.go | Apache-2.0 |
func StringToInt64(name string, value map[string]int64, usage string) *map[string]int64 {
return CommandLine.StringToInt64P(name, "", value, usage)
} | StringToInt64 defines a string flag with specified name, default value, and usage string.
The return value is the address of a map[string]int64 variable that stores the value of the flag.
The value of each argument will not try to be separated by comma | StringToInt64 | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/string_to_int64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_int64.go | Apache-2.0 |
func StringToInt64P(name, shorthand string, value map[string]int64, usage string) *map[string]int64 {
return CommandLine.StringToInt64P(name, shorthand, value, usage)
} | StringToInt64P is like StringToInt64, but accepts a shorthand letter that can be used after a single dash. | StringToInt64P | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/string_to_int64.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_int64.go | Apache-2.0 |
func (f *FlagSet) GetInt32(name string) (int32, error) {
val, err := f.getFlagType(name, "int32", int32Conv)
if err != nil {
return 0, err
}
return val.(int32), nil
} | GetInt32 return the int32 value of a flag with the given name | GetInt32 | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int32.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int32.go | Apache-2.0 |
func (f *FlagSet) Int32Var(p *int32, name string, value int32, usage string) {
f.VarP(newInt32Value(value, p), name, "", usage)
} | Int32Var defines an int32 flag with specified name, default value, and usage string.
The argument p points to an int32 variable in which to store the value of the flag. | Int32Var | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int32.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int32.go | Apache-2.0 |
func (f *FlagSet) Int32VarP(p *int32, name, shorthand string, value int32, usage string) {
f.VarP(newInt32Value(value, p), name, shorthand, usage)
} | Int32VarP is like Int32Var, but accepts a shorthand letter that can be used after a single dash. | Int32VarP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int32.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int32.go | Apache-2.0 |
func Int32Var(p *int32, name string, value int32, usage string) {
CommandLine.VarP(newInt32Value(value, p), name, "", usage)
} | Int32Var defines an int32 flag with specified name, default value, and usage string.
The argument p points to an int32 variable in which to store the value of the flag. | Int32Var | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int32.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int32.go | Apache-2.0 |
func Int32VarP(p *int32, name, shorthand string, value int32, usage string) {
CommandLine.VarP(newInt32Value(value, p), name, shorthand, usage)
} | Int32VarP is like Int32Var, but accepts a shorthand letter that can be used after a single dash. | Int32VarP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int32.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int32.go | Apache-2.0 |
func (f *FlagSet) Int32(name string, value int32, usage string) *int32 {
p := new(int32)
f.Int32VarP(p, name, "", value, usage)
return p
} | Int32 defines an int32 flag with specified name, default value, and usage string.
The return value is the address of an int32 variable that stores the value of the flag. | Int32 | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int32.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int32.go | Apache-2.0 |
func (f *FlagSet) Int32P(name, shorthand string, value int32, usage string) *int32 {
p := new(int32)
f.Int32VarP(p, name, shorthand, value, usage)
return p
} | Int32P is like Int32, but accepts a shorthand letter that can be used after a single dash. | Int32P | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int32.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int32.go | Apache-2.0 |
func Int32(name string, value int32, usage string) *int32 {
return CommandLine.Int32P(name, "", value, usage)
} | Int32 defines an int32 flag with specified name, default value, and usage string.
The return value is the address of an int32 variable that stores the value of the flag. | Int32 | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int32.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int32.go | Apache-2.0 |
func Int32P(name, shorthand string, value int32, usage string) *int32 {
return CommandLine.Int32P(name, shorthand, value, usage)
} | Int32P is like Int32, but accepts a shorthand letter that can be used after a single dash. | Int32P | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/int32.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int32.go | Apache-2.0 |
func (f *FlagSet) GetString(name string) (string, error) {
val, err := f.getFlagType(name, "string", stringConv)
if err != nil {
return "", err
}
return val.(string), nil
} | GetString return the string value of a flag with the given name | GetString | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/string.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string.go | Apache-2.0 |
func (f *FlagSet) StringVar(p *string, name string, value string, usage string) {
f.VarP(newStringValue(value, p), name, "", usage)
} | StringVar defines a string flag with specified name, default value, and usage string.
The argument p points to a string variable in which to store the value of the flag. | StringVar | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/string.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string.go | Apache-2.0 |
func (f *FlagSet) StringVarP(p *string, name, shorthand string, value string, usage string) {
f.VarP(newStringValue(value, p), name, shorthand, usage)
} | StringVarP is like StringVar, but accepts a shorthand letter that can be used after a single dash. | StringVarP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/string.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string.go | Apache-2.0 |
func StringVar(p *string, name string, value string, usage string) {
CommandLine.VarP(newStringValue(value, p), name, "", usage)
} | StringVar defines a string flag with specified name, default value, and usage string.
The argument p points to a string variable in which to store the value of the flag. | StringVar | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/string.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string.go | Apache-2.0 |
func StringVarP(p *string, name, shorthand string, value string, usage string) {
CommandLine.VarP(newStringValue(value, p), name, shorthand, usage)
} | StringVarP is like StringVar, but accepts a shorthand letter that can be used after a single dash. | StringVarP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/string.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string.go | Apache-2.0 |
func (f *FlagSet) String(name string, value string, usage string) *string {
p := new(string)
f.StringVarP(p, name, "", value, usage)
return p
} | String defines a string flag with specified name, default value, and usage string.
The return value is the address of a string variable that stores the value of the flag. | String | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/string.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string.go | Apache-2.0 |
func (f *FlagSet) StringP(name, shorthand string, value string, usage string) *string {
p := new(string)
f.StringVarP(p, name, shorthand, value, usage)
return p
} | StringP is like String, but accepts a shorthand letter that can be used after a single dash. | StringP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/string.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string.go | Apache-2.0 |
func String(name string, value string, usage string) *string {
return CommandLine.StringP(name, "", value, usage)
} | String defines a string flag with specified name, default value, and usage string.
The return value is the address of a string variable that stores the value of the flag. | String | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/string.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string.go | Apache-2.0 |
func StringP(name, shorthand string, value string, usage string) *string {
return CommandLine.StringP(name, shorthand, value, usage)
} | StringP is like String, but accepts a shorthand letter that can be used after a single dash. | StringP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/string.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string.go | Apache-2.0 |
func ParseIPv4Mask(s string) net.IPMask {
mask := net.ParseIP(s)
if mask == nil {
if len(s) != 8 {
return nil
}
// net.IPMask.String() actually outputs things like ffffff00
// so write a horrible parser for that as well :-(
m := []int{}
for i := 0; i < 4; i++ {
b := "0x" + s[2*i:2*i+2]
d, err := strconv.ParseInt(b, 0, 0)
if err != nil {
return nil
}
m = append(m, int(d))
}
s := fmt.Sprintf("%d.%d.%d.%d", m[0], m[1], m[2], m[3])
mask = net.ParseIP(s)
if mask == nil {
return nil
}
}
return net.IPv4Mask(mask[12], mask[13], mask[14], mask[15])
} | ParseIPv4Mask written in IP form (e.g. 255.255.255.0).
This function should really belong to the net package. | ParseIPv4Mask | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/ipmask.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ipmask.go | Apache-2.0 |
func (f *FlagSet) GetIPv4Mask(name string) (net.IPMask, error) {
val, err := f.getFlagType(name, "ipMask", parseIPv4Mask)
if err != nil {
return nil, err
}
return val.(net.IPMask), nil
} | GetIPv4Mask return the net.IPv4Mask value of a flag with the given name | GetIPv4Mask | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/ipmask.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ipmask.go | Apache-2.0 |
func (f *FlagSet) IPMaskVar(p *net.IPMask, name string, value net.IPMask, usage string) {
f.VarP(newIPMaskValue(value, p), name, "", usage)
} | IPMaskVar defines an net.IPMask flag with specified name, default value, and usage string.
The argument p points to an net.IPMask variable in which to store the value of the flag. | IPMaskVar | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/ipmask.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ipmask.go | Apache-2.0 |
func (f *FlagSet) IPMaskVarP(p *net.IPMask, name, shorthand string, value net.IPMask, usage string) {
f.VarP(newIPMaskValue(value, p), name, shorthand, usage)
} | IPMaskVarP is like IPMaskVar, but accepts a shorthand letter that can be used after a single dash. | IPMaskVarP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/ipmask.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ipmask.go | Apache-2.0 |
func IPMaskVar(p *net.IPMask, name string, value net.IPMask, usage string) {
CommandLine.VarP(newIPMaskValue(value, p), name, "", usage)
} | IPMaskVar defines an net.IPMask flag with specified name, default value, and usage string.
The argument p points to an net.IPMask variable in which to store the value of the flag. | IPMaskVar | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/ipmask.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ipmask.go | Apache-2.0 |
func IPMaskVarP(p *net.IPMask, name, shorthand string, value net.IPMask, usage string) {
CommandLine.VarP(newIPMaskValue(value, p), name, shorthand, usage)
} | IPMaskVarP is like IPMaskVar, but accepts a shorthand letter that can be used after a single dash. | IPMaskVarP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/ipmask.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ipmask.go | Apache-2.0 |
func (f *FlagSet) IPMask(name string, value net.IPMask, usage string) *net.IPMask {
p := new(net.IPMask)
f.IPMaskVarP(p, name, "", value, usage)
return p
} | IPMask defines an net.IPMask flag with specified name, default value, and usage string.
The return value is the address of an net.IPMask variable that stores the value of the flag. | IPMask | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/ipmask.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ipmask.go | Apache-2.0 |
func (f *FlagSet) IPMaskP(name, shorthand string, value net.IPMask, usage string) *net.IPMask {
p := new(net.IPMask)
f.IPMaskVarP(p, name, shorthand, value, usage)
return p
} | IPMaskP is like IPMask, but accepts a shorthand letter that can be used after a single dash. | IPMaskP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/ipmask.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ipmask.go | Apache-2.0 |
func IPMask(name string, value net.IPMask, usage string) *net.IPMask {
return CommandLine.IPMaskP(name, "", value, usage)
} | IPMask defines an net.IPMask flag with specified name, default value, and usage string.
The return value is the address of an net.IPMask variable that stores the value of the flag. | IPMask | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/ipmask.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ipmask.go | Apache-2.0 |
func IPMaskP(name, shorthand string, value net.IPMask, usage string) *net.IPMask {
return CommandLine.IPMaskP(name, shorthand, value, usage)
} | IPMaskP is like IP, but accepts a shorthand letter that can be used after a single dash. | IPMaskP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/ipmask.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ipmask.go | Apache-2.0 |
func (f *FlagSet) GetDuration(name string) (time.Duration, error) {
val, err := f.getFlagType(name, "duration", durationConv)
if err != nil {
return 0, err
}
return val.(time.Duration), nil
} | GetDuration return the duration value of a flag with the given name | GetDuration | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/duration.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/duration.go | Apache-2.0 |
func (f *FlagSet) DurationVar(p *time.Duration, name string, value time.Duration, usage string) {
f.VarP(newDurationValue(value, p), name, "", usage)
} | DurationVar defines a time.Duration flag with specified name, default value, and usage string.
The argument p points to a time.Duration variable in which to store the value of the flag. | DurationVar | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/duration.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/duration.go | Apache-2.0 |
func (f *FlagSet) DurationVarP(p *time.Duration, name, shorthand string, value time.Duration, usage string) {
f.VarP(newDurationValue(value, p), name, shorthand, usage)
} | DurationVarP is like DurationVar, but accepts a shorthand letter that can be used after a single dash. | DurationVarP | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/duration.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/duration.go | Apache-2.0 |
func DurationVar(p *time.Duration, name string, value time.Duration, usage string) {
CommandLine.VarP(newDurationValue(value, p), name, "", usage)
} | DurationVar defines a time.Duration flag with specified name, default value, and usage string.
The argument p points to a time.Duration variable in which to store the value of the flag. | DurationVar | go | k8snetworkplumbingwg/multus-cni | vendor/github.com/spf13/pflag/duration.go | https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/duration.go | Apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.