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 (f *FlagSet) IntP(name, shorthand string, value int, usage string) *int { p := new(int) f.IntVarP(p, name, shorthand, value, usage) return p }
IntP is like Int, but accepts a shorthand letter that can be used after a single dash.
IntP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/int.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int.go
Apache-2.0
func Int(name string, value int, usage string) *int { return CommandLine.IntP(name, "", value, usage) }
Int defines an int flag with specified name, default value, and usage string. The return value is the address of an int variable that stores the value of the flag.
Int
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/int.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int.go
Apache-2.0
func IntP(name, shorthand string, value int, usage string) *int { return CommandLine.IntP(name, shorthand, value, usage) }
IntP is like Int, but accepts a shorthand letter that can be used after a single dash.
IntP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/int.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int.go
Apache-2.0
func (s *ipSliceValue) Set(val string) error { // remove all quote characters rmQuote := strings.NewReplacer(`"`, "", `'`, "", "`", "") // read flag arguments with CSV parser ipStrSlice, err := readAsCSV(rmQuote.Replace(val)) if err != nil && err != io.EOF { return err } // parse ip values into slice out := make([]net.IP, 0, len(ipStrSlice)) for _, ipStr := range ipStrSlice { ip := net.ParseIP(strings.TrimSpace(ipStr)) if ip == nil { return fmt.Errorf("invalid string being converted to IP address: %s", ipStr) } out = append(out, ip) } if !s.changed { *s.value = out } else { *s.value = append(*s.value, out...) } s.changed = true return nil }
Set converts, and assigns, the comma-separated IP argument string representation as the []net.IP value of this flag. If Set is called on a flag that already has a []net.IP assigned, the newly converted values will be appended.
Set
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/ip_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ip_slice.go
Apache-2.0
func (s *ipSliceValue) Type() string { return "ipSlice" }
Type returns a string that uniquely represents this flag's type.
Type
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/ip_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ip_slice.go
Apache-2.0
func (s *ipSliceValue) String() string { ipStrSlice := make([]string, len(*s.value)) for i, ip := range *s.value { ipStrSlice[i] = ip.String() } out, _ := writeAsCSV(ipStrSlice) return "[" + out + "]" }
String defines a "native" format for this net.IP slice flag value.
String
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/ip_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ip_slice.go
Apache-2.0
func (f *FlagSet) GetIPSlice(name string) ([]net.IP, error) { val, err := f.getFlagType(name, "ipSlice", ipSliceConv) if err != nil { return []net.IP{}, err } return val.([]net.IP), nil }
GetIPSlice returns the []net.IP value of a flag with the given name
GetIPSlice
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/ip_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ip_slice.go
Apache-2.0
func (f *FlagSet) IPSliceVar(p *[]net.IP, name string, value []net.IP, usage string) { f.VarP(newIPSliceValue(value, p), name, "", usage) }
IPSliceVar defines a ipSlice flag with specified name, default value, and usage string. The argument p points to a []net.IP variable in which to store the value of the flag.
IPSliceVar
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/ip_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ip_slice.go
Apache-2.0
func (f *FlagSet) IPSliceVarP(p *[]net.IP, name, shorthand string, value []net.IP, usage string) { f.VarP(newIPSliceValue(value, p), name, shorthand, usage) }
IPSliceVarP is like IPSliceVar, but accepts a shorthand letter that can be used after a single dash.
IPSliceVarP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/ip_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ip_slice.go
Apache-2.0
func IPSliceVar(p *[]net.IP, name string, value []net.IP, usage string) { CommandLine.VarP(newIPSliceValue(value, p), name, "", usage) }
IPSliceVar defines a []net.IP flag with specified name, default value, and usage string. The argument p points to a []net.IP variable in which to store the value of the flag.
IPSliceVar
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/ip_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ip_slice.go
Apache-2.0
func IPSliceVarP(p *[]net.IP, name, shorthand string, value []net.IP, usage string) { CommandLine.VarP(newIPSliceValue(value, p), name, shorthand, usage) }
IPSliceVarP is like IPSliceVar, but accepts a shorthand letter that can be used after a single dash.
IPSliceVarP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/ip_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ip_slice.go
Apache-2.0
func (f *FlagSet) IPSlice(name string, value []net.IP, usage string) *[]net.IP { p := []net.IP{} f.IPSliceVarP(&p, name, "", value, usage) return &p }
IPSlice defines a []net.IP flag with specified name, default value, and usage string. The return value is the address of a []net.IP variable that stores the value of that flag.
IPSlice
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/ip_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ip_slice.go
Apache-2.0
func (f *FlagSet) IPSliceP(name, shorthand string, value []net.IP, usage string) *[]net.IP { p := []net.IP{} f.IPSliceVarP(&p, name, shorthand, value, usage) return &p }
IPSliceP is like IPSlice, but accepts a shorthand letter that can be used after a single dash.
IPSliceP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/ip_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ip_slice.go
Apache-2.0
func IPSlice(name string, value []net.IP, usage string) *[]net.IP { return CommandLine.IPSliceP(name, "", value, usage) }
IPSlice defines a []net.IP flag with specified name, default value, and usage string. The return value is the address of a []net.IP variable that stores the value of the flag.
IPSlice
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/ip_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ip_slice.go
Apache-2.0
func IPSliceP(name, shorthand string, value []net.IP, usage string) *[]net.IP { return CommandLine.IPSliceP(name, shorthand, value, usage) }
IPSliceP is like IPSlice, but accepts a shorthand letter that can be used after a single dash.
IPSliceP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/ip_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/ip_slice.go
Apache-2.0
func (f *FlagSet) GetStringToInt(name string) (map[string]int, error) { val, err := f.getFlagType(name, "stringToInt", stringToIntConv) if err != nil { return map[string]int{}, err } return val.(map[string]int), nil }
GetStringToInt return the map[string]int value of a flag with the given name
GetStringToInt
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_to_int.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_int.go
Apache-2.0
func (f *FlagSet) StringToIntVar(p *map[string]int, name string, value map[string]int, usage string) { f.VarP(newStringToIntValue(value, p), name, "", usage) }
StringToIntVar defines a string flag with specified name, default value, and usage string. The argument p points to a map[string]int variable in which to store the values of the multiple flags. The value of each argument will not try to be separated by comma
StringToIntVar
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_to_int.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_int.go
Apache-2.0
func (f *FlagSet) StringToIntVarP(p *map[string]int, name, shorthand string, value map[string]int, usage string) { f.VarP(newStringToIntValue(value, p), name, shorthand, usage) }
StringToIntVarP is like StringToIntVar, but accepts a shorthand letter that can be used after a single dash.
StringToIntVarP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_to_int.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_int.go
Apache-2.0
func StringToIntVar(p *map[string]int, name string, value map[string]int, usage string) { CommandLine.VarP(newStringToIntValue(value, p), name, "", usage) }
StringToIntVar defines a string flag with specified name, default value, and usage string. The argument p points to a map[string]int variable in which to store the value of the flag. The value of each argument will not try to be separated by comma
StringToIntVar
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_to_int.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_int.go
Apache-2.0
func StringToIntVarP(p *map[string]int, name, shorthand string, value map[string]int, usage string) { CommandLine.VarP(newStringToIntValue(value, p), name, shorthand, usage) }
StringToIntVarP is like StringToIntVar, but accepts a shorthand letter that can be used after a single dash.
StringToIntVarP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_to_int.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_int.go
Apache-2.0
func (f *FlagSet) StringToInt(name string, value map[string]int, usage string) *map[string]int { p := map[string]int{} f.StringToIntVarP(&p, name, "", value, usage) return &p }
StringToInt defines a string flag with specified name, default value, and usage string. The return value is the address of a map[string]int variable that stores the value of the flag. The value of each argument will not try to be separated by comma
StringToInt
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_to_int.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_int.go
Apache-2.0
func (f *FlagSet) StringToIntP(name, shorthand string, value map[string]int, usage string) *map[string]int { p := map[string]int{} f.StringToIntVarP(&p, name, shorthand, value, usage) return &p }
StringToIntP is like StringToInt, but accepts a shorthand letter that can be used after a single dash.
StringToIntP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_to_int.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_int.go
Apache-2.0
func StringToInt(name string, value map[string]int, usage string) *map[string]int { return CommandLine.StringToIntP(name, "", value, usage) }
StringToInt defines a string flag with specified name, default value, and usage string. The return value is the address of a map[string]int variable that stores the value of the flag. The value of each argument will not try to be separated by comma
StringToInt
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_to_int.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_int.go
Apache-2.0
func StringToIntP(name, shorthand string, value map[string]int, usage string) *map[string]int { return CommandLine.StringToIntP(name, shorthand, value, usage) }
StringToIntP is like StringToInt, but accepts a shorthand letter that can be used after a single dash.
StringToIntP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_to_int.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_int.go
Apache-2.0
func (f *FlagSet) GetStringSlice(name string) ([]string, error) { val, err := f.getFlagType(name, "stringSlice", stringSliceConv) if err != nil { return []string{}, err } return val.([]string), nil }
GetStringSlice return the []string value of a flag with the given name
GetStringSlice
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_slice.go
Apache-2.0
func (f *FlagSet) StringSliceVar(p *[]string, name string, value []string, usage string) { f.VarP(newStringSliceValue(value, p), name, "", usage) }
StringSliceVar 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. Compared to StringArray flags, StringSlice flags take comma-separated value as arguments and split them accordingly. For example: --ss="v1,v2" --ss="v3" will result in []string{"v1", "v2", "v3"}
StringSliceVar
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_slice.go
Apache-2.0
func (f *FlagSet) StringSliceVarP(p *[]string, name, shorthand string, value []string, usage string) { f.VarP(newStringSliceValue(value, p), name, shorthand, usage) }
StringSliceVarP is like StringSliceVar, but accepts a shorthand letter that can be used after a single dash.
StringSliceVarP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_slice.go
Apache-2.0
func StringSliceVar(p *[]string, name string, value []string, usage string) { CommandLine.VarP(newStringSliceValue(value, p), name, "", usage) }
StringSliceVar 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. Compared to StringArray flags, StringSlice flags take comma-separated value as arguments and split them accordingly. For example: --ss="v1,v2" --ss="v3" will result in []string{"v1", "v2", "v3"}
StringSliceVar
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_slice.go
Apache-2.0
func StringSliceVarP(p *[]string, name, shorthand string, value []string, usage string) { CommandLine.VarP(newStringSliceValue(value, p), name, shorthand, usage) }
StringSliceVarP is like StringSliceVar, but accepts a shorthand letter that can be used after a single dash.
StringSliceVarP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_slice.go
Apache-2.0
func (f *FlagSet) StringSlice(name string, value []string, usage string) *[]string { p := []string{} f.StringSliceVarP(&p, name, "", value, usage) return &p }
StringSlice 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. Compared to StringArray flags, StringSlice flags take comma-separated value as arguments and split them accordingly. For example: --ss="v1,v2" --ss="v3" will result in []string{"v1", "v2", "v3"}
StringSlice
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_slice.go
Apache-2.0
func (f *FlagSet) StringSliceP(name, shorthand string, value []string, usage string) *[]string { p := []string{} f.StringSliceVarP(&p, name, shorthand, value, usage) return &p }
StringSliceP is like StringSlice, but accepts a shorthand letter that can be used after a single dash.
StringSliceP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_slice.go
Apache-2.0
func StringSlice(name string, value []string, usage string) *[]string { return CommandLine.StringSliceP(name, "", value, usage) }
StringSlice 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. Compared to StringArray flags, StringSlice flags take comma-separated value as arguments and split them accordingly. For example: --ss="v1,v2" --ss="v3" will result in []string{"v1", "v2", "v3"}
StringSlice
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_slice.go
Apache-2.0
func StringSliceP(name, shorthand string, value []string, usage string) *[]string { return CommandLine.StringSliceP(name, shorthand, value, usage) }
StringSliceP is like StringSlice, but accepts a shorthand letter that can be used after a single dash.
StringSliceP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_slice.go
Apache-2.0
func (f *FlagSet) GetFloat32Slice(name string) ([]float32, error) { val, err := f.getFlagType(name, "float32Slice", float32SliceConv) if err != nil { return []float32{}, err } return val.([]float32), nil }
GetFloat32Slice return the []float32 value of a flag with the given name
GetFloat32Slice
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/float32_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/float32_slice.go
Apache-2.0
func (f *FlagSet) Float32SliceVar(p *[]float32, name string, value []float32, usage string) { f.VarP(newFloat32SliceValue(value, p), name, "", usage) }
Float32SliceVar defines a float32Slice flag with specified name, default value, and usage string. The argument p points to a []float32 variable in which to store the value of the flag.
Float32SliceVar
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/float32_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/float32_slice.go
Apache-2.0
func (f *FlagSet) Float32SliceVarP(p *[]float32, name, shorthand string, value []float32, usage string) { f.VarP(newFloat32SliceValue(value, p), name, shorthand, usage) }
Float32SliceVarP is like Float32SliceVar, but accepts a shorthand letter that can be used after a single dash.
Float32SliceVarP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/float32_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/float32_slice.go
Apache-2.0
func Float32SliceVar(p *[]float32, name string, value []float32, usage string) { CommandLine.VarP(newFloat32SliceValue(value, p), name, "", usage) }
Float32SliceVar defines a float32[] flag with specified name, default value, and usage string. The argument p points to a float32[] variable in which to store the value of the flag.
Float32SliceVar
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/float32_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/float32_slice.go
Apache-2.0
func Float32SliceVarP(p *[]float32, name, shorthand string, value []float32, usage string) { CommandLine.VarP(newFloat32SliceValue(value, p), name, shorthand, usage) }
Float32SliceVarP is like Float32SliceVar, but accepts a shorthand letter that can be used after a single dash.
Float32SliceVarP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/float32_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/float32_slice.go
Apache-2.0
func (f *FlagSet) Float32Slice(name string, value []float32, usage string) *[]float32 { p := []float32{} f.Float32SliceVarP(&p, name, "", value, usage) return &p }
Float32Slice defines a []float32 flag with specified name, default value, and usage string. The return value is the address of a []float32 variable that stores the value of the flag.
Float32Slice
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/float32_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/float32_slice.go
Apache-2.0
func (f *FlagSet) Float32SliceP(name, shorthand string, value []float32, usage string) *[]float32 { p := []float32{} f.Float32SliceVarP(&p, name, shorthand, value, usage) return &p }
Float32SliceP is like Float32Slice, but accepts a shorthand letter that can be used after a single dash.
Float32SliceP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/float32_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/float32_slice.go
Apache-2.0
func Float32Slice(name string, value []float32, usage string) *[]float32 { return CommandLine.Float32SliceP(name, "", value, usage) }
Float32Slice defines a []float32 flag with specified name, default value, and usage string. The return value is the address of a []float32 variable that stores the value of the flag.
Float32Slice
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/float32_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/float32_slice.go
Apache-2.0
func Float32SliceP(name, shorthand string, value []float32, usage string) *[]float32 { return CommandLine.Float32SliceP(name, shorthand, value, usage) }
Float32SliceP is like Float32Slice, but accepts a shorthand letter that can be used after a single dash.
Float32SliceP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/float32_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/float32_slice.go
Apache-2.0
func (f *FlagSet) GetUint32(name string) (uint32, error) { val, err := f.getFlagType(name, "uint32", uint32Conv) if err != nil { return 0, err } return val.(uint32), nil }
GetUint32 return the uint32 value of a flag with the given name
GetUint32
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/uint32.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/uint32.go
Apache-2.0
func (f *FlagSet) Uint32Var(p *uint32, name string, value uint32, usage string) { f.VarP(newUint32Value(value, p), name, "", usage) }
Uint32Var defines a uint32 flag with specified name, default value, and usage string. The argument p points to a uint32 variable in which to store the value of the flag.
Uint32Var
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/uint32.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/uint32.go
Apache-2.0
func (f *FlagSet) Uint32VarP(p *uint32, name, shorthand string, value uint32, usage string) { f.VarP(newUint32Value(value, p), name, shorthand, usage) }
Uint32VarP is like Uint32Var, but accepts a shorthand letter that can be used after a single dash.
Uint32VarP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/uint32.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/uint32.go
Apache-2.0
func Uint32Var(p *uint32, name string, value uint32, usage string) { CommandLine.VarP(newUint32Value(value, p), name, "", usage) }
Uint32Var defines a uint32 flag with specified name, default value, and usage string. The argument p points to a uint32 variable in which to store the value of the flag.
Uint32Var
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/uint32.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/uint32.go
Apache-2.0
func Uint32VarP(p *uint32, name, shorthand string, value uint32, usage string) { CommandLine.VarP(newUint32Value(value, p), name, shorthand, usage) }
Uint32VarP is like Uint32Var, but accepts a shorthand letter that can be used after a single dash.
Uint32VarP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/uint32.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/uint32.go
Apache-2.0
func (f *FlagSet) Uint32(name string, value uint32, usage string) *uint32 { p := new(uint32) f.Uint32VarP(p, name, "", value, usage) return p }
Uint32 defines a uint32 flag with specified name, default value, and usage string. The return value is the address of a uint32 variable that stores the value of the flag.
Uint32
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/uint32.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/uint32.go
Apache-2.0
func (f *FlagSet) Uint32P(name, shorthand string, value uint32, usage string) *uint32 { p := new(uint32) f.Uint32VarP(p, name, shorthand, value, usage) return p }
Uint32P is like Uint32, but accepts a shorthand letter that can be used after a single dash.
Uint32P
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/uint32.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/uint32.go
Apache-2.0
func Uint32(name string, value uint32, usage string) *uint32 { return CommandLine.Uint32P(name, "", value, usage) }
Uint32 defines a uint32 flag with specified name, default value, and usage string. The return value is the address of a uint32 variable that stores the value of the flag.
Uint32
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/uint32.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/uint32.go
Apache-2.0
func Uint32P(name, shorthand string, value uint32, usage string) *uint32 { return CommandLine.Uint32P(name, shorthand, value, usage) }
Uint32P is like Uint32, but accepts a shorthand letter that can be used after a single dash.
Uint32P
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/uint32.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/uint32.go
Apache-2.0
func (f *FlagSet) GetIntSlice(name string) ([]int, error) { val, err := f.getFlagType(name, "intSlice", intSliceConv) if err != nil { return []int{}, err } return val.([]int), nil }
GetIntSlice return the []int value of a flag with the given name
GetIntSlice
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/int_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int_slice.go
Apache-2.0
func (f *FlagSet) IntSliceVar(p *[]int, name string, value []int, usage string) { f.VarP(newIntSliceValue(value, p), name, "", usage) }
IntSliceVar defines a intSlice flag with specified name, default value, and usage string. The argument p points to a []int variable in which to store the value of the flag.
IntSliceVar
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/int_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int_slice.go
Apache-2.0
func (f *FlagSet) IntSliceVarP(p *[]int, name, shorthand string, value []int, usage string) { f.VarP(newIntSliceValue(value, p), name, shorthand, usage) }
IntSliceVarP is like IntSliceVar, but accepts a shorthand letter that can be used after a single dash.
IntSliceVarP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/int_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int_slice.go
Apache-2.0
func IntSliceVar(p *[]int, name string, value []int, usage string) { CommandLine.VarP(newIntSliceValue(value, p), name, "", usage) }
IntSliceVar defines a int[] flag with specified name, default value, and usage string. The argument p points to a int[] variable in which to store the value of the flag.
IntSliceVar
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/int_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int_slice.go
Apache-2.0
func IntSliceVarP(p *[]int, name, shorthand string, value []int, usage string) { CommandLine.VarP(newIntSliceValue(value, p), name, shorthand, usage) }
IntSliceVarP is like IntSliceVar, but accepts a shorthand letter that can be used after a single dash.
IntSliceVarP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/int_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int_slice.go
Apache-2.0
func (f *FlagSet) IntSlice(name string, value []int, usage string) *[]int { p := []int{} f.IntSliceVarP(&p, name, "", value, usage) return &p }
IntSlice defines a []int flag with specified name, default value, and usage string. The return value is the address of a []int variable that stores the value of the flag.
IntSlice
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/int_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int_slice.go
Apache-2.0
func (f *FlagSet) IntSliceP(name, shorthand string, value []int, usage string) *[]int { p := []int{} f.IntSliceVarP(&p, name, shorthand, value, usage) return &p }
IntSliceP is like IntSlice, but accepts a shorthand letter that can be used after a single dash.
IntSliceP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/int_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int_slice.go
Apache-2.0
func IntSlice(name string, value []int, usage string) *[]int { return CommandLine.IntSliceP(name, "", value, usage) }
IntSlice defines a []int flag with specified name, default value, and usage string. The return value is the address of a []int variable that stores the value of the flag.
IntSlice
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/int_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int_slice.go
Apache-2.0
func IntSliceP(name, shorthand string, value []int, usage string) *[]int { return CommandLine.IntSliceP(name, shorthand, value, usage) }
IntSliceP is like IntSlice, but accepts a shorthand letter that can be used after a single dash.
IntSliceP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/int_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int_slice.go
Apache-2.0
func (f *FlagSet) GetDurationSlice(name string) ([]time.Duration, error) { val, err := f.getFlagType(name, "durationSlice", durationSliceConv) if err != nil { return []time.Duration{}, err } return val.([]time.Duration), nil }
GetDurationSlice returns the []time.Duration value of a flag with the given name
GetDurationSlice
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/duration_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/duration_slice.go
Apache-2.0
func (f *FlagSet) DurationSliceVar(p *[]time.Duration, name string, value []time.Duration, usage string) { f.VarP(newDurationSliceValue(value, p), name, "", usage) }
DurationSliceVar defines a durationSlice 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.
DurationSliceVar
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/duration_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/duration_slice.go
Apache-2.0
func (f *FlagSet) DurationSliceVarP(p *[]time.Duration, name, shorthand string, value []time.Duration, usage string) { f.VarP(newDurationSliceValue(value, p), name, shorthand, usage) }
DurationSliceVarP is like DurationSliceVar, but accepts a shorthand letter that can be used after a single dash.
DurationSliceVarP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/duration_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/duration_slice.go
Apache-2.0
func DurationSliceVar(p *[]time.Duration, name string, value []time.Duration, usage string) { CommandLine.VarP(newDurationSliceValue(value, p), name, "", usage) }
DurationSliceVar defines a duration[] flag with specified name, default value, and usage string. The argument p points to a duration[] variable in which to store the value of the flag.
DurationSliceVar
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/duration_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/duration_slice.go
Apache-2.0
func DurationSliceVarP(p *[]time.Duration, name, shorthand string, value []time.Duration, usage string) { CommandLine.VarP(newDurationSliceValue(value, p), name, shorthand, usage) }
DurationSliceVarP is like DurationSliceVar, but accepts a shorthand letter that can be used after a single dash.
DurationSliceVarP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/duration_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/duration_slice.go
Apache-2.0
func (f *FlagSet) DurationSlice(name string, value []time.Duration, usage string) *[]time.Duration { p := []time.Duration{} f.DurationSliceVarP(&p, name, "", value, usage) return &p }
DurationSlice defines a []time.Duration flag with specified name, default value, and usage string. The return value is the address of a []time.Duration variable that stores the value of the flag.
DurationSlice
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/duration_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/duration_slice.go
Apache-2.0
func (f *FlagSet) DurationSliceP(name, shorthand string, value []time.Duration, usage string) *[]time.Duration { p := []time.Duration{} f.DurationSliceVarP(&p, name, shorthand, value, usage) return &p }
DurationSliceP is like DurationSlice, but accepts a shorthand letter that can be used after a single dash.
DurationSliceP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/duration_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/duration_slice.go
Apache-2.0
func DurationSlice(name string, value []time.Duration, usage string) *[]time.Duration { return CommandLine.DurationSliceP(name, "", value, usage) }
DurationSlice defines a []time.Duration flag with specified name, default value, and usage string. The return value is the address of a []time.Duration variable that stores the value of the flag.
DurationSlice
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/duration_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/duration_slice.go
Apache-2.0
func DurationSliceP(name, shorthand string, value []time.Duration, usage string) *[]time.Duration { return CommandLine.DurationSliceP(name, shorthand, value, usage) }
DurationSliceP is like DurationSlice, but accepts a shorthand letter that can be used after a single dash.
DurationSliceP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/duration_slice.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/duration_slice.go
Apache-2.0
func (f *FlagSet) GetInt16(name string) (int16, error) { val, err := f.getFlagType(name, "int16", int16Conv) if err != nil { return 0, err } return val.(int16), nil }
GetInt16 returns the int16 value of a flag with the given name
GetInt16
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/int16.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int16.go
Apache-2.0
func (f *FlagSet) Int16Var(p *int16, name string, value int16, usage string) { f.VarP(newInt16Value(value, p), name, "", usage) }
Int16Var defines an int16 flag with specified name, default value, and usage string. The argument p points to an int16 variable in which to store the value of the flag.
Int16Var
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/int16.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int16.go
Apache-2.0
func (f *FlagSet) Int16VarP(p *int16, name, shorthand string, value int16, usage string) { f.VarP(newInt16Value(value, p), name, shorthand, usage) }
Int16VarP is like Int16Var, but accepts a shorthand letter that can be used after a single dash.
Int16VarP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/int16.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int16.go
Apache-2.0
func Int16Var(p *int16, name string, value int16, usage string) { CommandLine.VarP(newInt16Value(value, p), name, "", usage) }
Int16Var defines an int16 flag with specified name, default value, and usage string. The argument p points to an int16 variable in which to store the value of the flag.
Int16Var
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/int16.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int16.go
Apache-2.0
func Int16VarP(p *int16, name, shorthand string, value int16, usage string) { CommandLine.VarP(newInt16Value(value, p), name, shorthand, usage) }
Int16VarP is like Int16Var, but accepts a shorthand letter that can be used after a single dash.
Int16VarP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/int16.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int16.go
Apache-2.0
func (f *FlagSet) Int16(name string, value int16, usage string) *int16 { p := new(int16) f.Int16VarP(p, name, "", value, usage) return p }
Int16 defines an int16 flag with specified name, default value, and usage string. The return value is the address of an int16 variable that stores the value of the flag.
Int16
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/int16.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int16.go
Apache-2.0
func (f *FlagSet) Int16P(name, shorthand string, value int16, usage string) *int16 { p := new(int16) f.Int16VarP(p, name, shorthand, value, usage) return p }
Int16P is like Int16, but accepts a shorthand letter that can be used after a single dash.
Int16P
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/int16.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int16.go
Apache-2.0
func Int16(name string, value int16, usage string) *int16 { return CommandLine.Int16P(name, "", value, usage) }
Int16 defines an int16 flag with specified name, default value, and usage string. The return value is the address of an int16 variable that stores the value of the flag.
Int16
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/int16.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int16.go
Apache-2.0
func Int16P(name, shorthand string, value int16, usage string) *int16 { return CommandLine.Int16P(name, shorthand, value, usage) }
Int16P is like Int16, but accepts a shorthand letter that can be used after a single dash.
Int16P
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/int16.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/int16.go
Apache-2.0
func (f *FlagSet) GetStringToString(name string) (map[string]string, error) { val, err := f.getFlagType(name, "stringToString", stringToStringConv) if err != nil { return map[string]string{}, err } return val.(map[string]string), nil }
GetStringToString return the map[string]string value of a flag with the given name
GetStringToString
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_to_string.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_string.go
Apache-2.0
func (f *FlagSet) StringToStringVar(p *map[string]string, name string, value map[string]string, usage string) { f.VarP(newStringToStringValue(value, p), name, "", usage) }
StringToStringVar defines a string flag with specified name, default value, and usage string. The argument p points to a map[string]string variable in which to store the values of the multiple flags. The value of each argument will not try to be separated by comma
StringToStringVar
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_to_string.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_string.go
Apache-2.0
func (f *FlagSet) StringToStringVarP(p *map[string]string, name, shorthand string, value map[string]string, usage string) { f.VarP(newStringToStringValue(value, p), name, shorthand, usage) }
StringToStringVarP is like StringToStringVar, but accepts a shorthand letter that can be used after a single dash.
StringToStringVarP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_to_string.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_string.go
Apache-2.0
func StringToStringVar(p *map[string]string, name string, value map[string]string, usage string) { CommandLine.VarP(newStringToStringValue(value, p), name, "", usage) }
StringToStringVar defines a string flag with specified name, default value, and usage string. The argument p points to a map[string]string variable in which to store the value of the flag. The value of each argument will not try to be separated by comma
StringToStringVar
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_to_string.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_string.go
Apache-2.0
func StringToStringVarP(p *map[string]string, name, shorthand string, value map[string]string, usage string) { CommandLine.VarP(newStringToStringValue(value, p), name, shorthand, usage) }
StringToStringVarP is like StringToStringVar, but accepts a shorthand letter that can be used after a single dash.
StringToStringVarP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_to_string.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_string.go
Apache-2.0
func (f *FlagSet) StringToString(name string, value map[string]string, usage string) *map[string]string { p := map[string]string{} f.StringToStringVarP(&p, name, "", value, usage) return &p }
StringToString defines a string flag with specified name, default value, and usage string. The return value is the address of a map[string]string variable that stores the value of the flag. The value of each argument will not try to be separated by comma
StringToString
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_to_string.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_string.go
Apache-2.0
func (f *FlagSet) StringToStringP(name, shorthand string, value map[string]string, usage string) *map[string]string { p := map[string]string{} f.StringToStringVarP(&p, name, shorthand, value, usage) return &p }
StringToStringP is like StringToString, but accepts a shorthand letter that can be used after a single dash.
StringToStringP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_to_string.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_string.go
Apache-2.0
func StringToString(name string, value map[string]string, usage string) *map[string]string { return CommandLine.StringToStringP(name, "", value, usage) }
StringToString defines a string flag with specified name, default value, and usage string. The return value is the address of a map[string]string variable that stores the value of the flag. The value of each argument will not try to be separated by comma
StringToString
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_to_string.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_string.go
Apache-2.0
func StringToStringP(name, shorthand string, value map[string]string, usage string) *map[string]string { return CommandLine.StringToStringP(name, shorthand, value, usage) }
StringToStringP is like StringToString, but accepts a shorthand letter that can be used after a single dash.
StringToStringP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/string_to_string.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/string_to_string.go
Apache-2.0
func (f *FlagSet) GetUint64(name string) (uint64, error) { val, err := f.getFlagType(name, "uint64", uint64Conv) if err != nil { return 0, err } return val.(uint64), nil }
GetUint64 return the uint64 value of a flag with the given name
GetUint64
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/uint64.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/uint64.go
Apache-2.0
func (f *FlagSet) Uint64Var(p *uint64, name string, value uint64, usage string) { f.VarP(newUint64Value(value, p), name, "", usage) }
Uint64Var defines a uint64 flag with specified name, default value, and usage string. The argument p points to a uint64 variable in which to store the value of the flag.
Uint64Var
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/uint64.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/uint64.go
Apache-2.0
func (f *FlagSet) Uint64VarP(p *uint64, name, shorthand string, value uint64, usage string) { f.VarP(newUint64Value(value, p), name, shorthand, usage) }
Uint64VarP is like Uint64Var, but accepts a shorthand letter that can be used after a single dash.
Uint64VarP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/uint64.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/uint64.go
Apache-2.0
func Uint64Var(p *uint64, name string, value uint64, usage string) { CommandLine.VarP(newUint64Value(value, p), name, "", usage) }
Uint64Var defines a uint64 flag with specified name, default value, and usage string. The argument p points to a uint64 variable in which to store the value of the flag.
Uint64Var
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/uint64.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/uint64.go
Apache-2.0
func Uint64VarP(p *uint64, name, shorthand string, value uint64, usage string) { CommandLine.VarP(newUint64Value(value, p), name, shorthand, usage) }
Uint64VarP is like Uint64Var, but accepts a shorthand letter that can be used after a single dash.
Uint64VarP
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/uint64.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/uint64.go
Apache-2.0
func (f *FlagSet) Uint64(name string, value uint64, usage string) *uint64 { p := new(uint64) f.Uint64VarP(p, name, "", value, usage) return p }
Uint64 defines a uint64 flag with specified name, default value, and usage string. The return value is the address of a uint64 variable that stores the value of the flag.
Uint64
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/uint64.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/uint64.go
Apache-2.0
func (f *FlagSet) Uint64P(name, shorthand string, value uint64, usage string) *uint64 { p := new(uint64) f.Uint64VarP(p, name, shorthand, value, usage) return p }
Uint64P is like Uint64, but accepts a shorthand letter that can be used after a single dash.
Uint64P
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/uint64.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/uint64.go
Apache-2.0
func Uint64(name string, value uint64, usage string) *uint64 { return CommandLine.Uint64P(name, "", value, usage) }
Uint64 defines a uint64 flag with specified name, default value, and usage string. The return value is the address of a uint64 variable that stores the value of the flag.
Uint64
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/uint64.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/uint64.go
Apache-2.0
func Uint64P(name, shorthand string, value uint64, usage string) *uint64 { return CommandLine.Uint64P(name, shorthand, value, usage) }
Uint64P is like Uint64, but accepts a shorthand letter that can be used after a single dash.
Uint64P
go
k8snetworkplumbingwg/multus-cni
vendor/github.com/spf13/pflag/uint64.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/github.com/spf13/pflag/uint64.go
Apache-2.0
func (f *FlagSet) GetFloat64(name string) (float64, error) { val, err := f.getFlagType(name, "float64", float64Conv) if err != nil { return 0, err } return val.(float64), nil }
GetFloat64 return the float64 value of a flag with the given name
GetFloat64
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) Float64Var(p *float64, name string, value float64, usage string) { f.VarP(newFloat64Value(value, p), name, "", usage) }
Float64Var defines a float64 flag with specified name, default value, and usage string. The argument p points to a float64 variable in which to store the value of the flag.
Float64Var
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) Float64VarP(p *float64, name, shorthand string, value float64, usage string) { f.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 Float64Var(p *float64, name string, value float64, usage string) { CommandLine.VarP(newFloat64Value(value, p), name, "", usage) }
Float64Var defines a float64 flag with specified name, default value, and usage string. The argument p points to a float64 variable in which to store the value of the flag.
Float64Var
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