• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /6.0.3/godeps/src/github.com/couchbase/vellum/vendor/github.com/spf13/pflag/

Lines Matching defs:string

5 	value   *[]string
9 func newStringArrayValue(val []string, p *[]string) *stringArrayValue {
16 func (s *stringArrayValue) Set(val string) error {
18 *s.value = []string{val}
26 func (s *stringArrayValue) Type() string {
30 func (s *stringArrayValue) String() string {
35 func stringArrayConv(sval string) (interface{}, error) {
37 // An empty string would cause a array with one (empty) string
39 return []string{}, nil
44 // GetStringArray return the []string value of a flag with the given name
45 func (f *FlagSet) GetStringArray(name string) ([]string, error) {
48 return []string{}, err
50 return val.([]string), nil
53 // StringArrayVar defines a string flag with specified name, default value, and usage string.
54 // The argument p points to a []string variable in which to store the values of the multiple flags.
56 func (f *FlagSet) StringArrayVar(p *[]string, name string, value []string, usage string) {
61 func (f *FlagSet) StringArrayVarP(p *[]string, name, shorthand string, value []string, usage string) {
65 // StringArrayVar defines a string flag with specified name, default value, and usage string.
66 // The argument p points to a []string variable in which to store the value of the flag.
68 func StringArrayVar(p *[]string, name string, value []string, usage string) {
73 func StringArrayVarP(p *[]string, name, shorthand string, value []string, usage string) {
77 // StringArray defines a string flag with specified name, default value, and usage string.
78 // The return value is the address of a []string variable that stores the value of the flag.
80 func (f *FlagSet) StringArray(name string, value []string, usage string) *[]string {
81 p := []string{}
87 func (f *FlagSet) StringArrayP(name, shorthand string, value []string, usage string) *[]string {
88 p := []string{}
93 // StringArray defines a string flag with specified name, default value, and usage string.
94 // The return value is the address of a []string variable that stores the value of the flag.
96 func StringArray(name string, value []string, usage string) *[]string {
101 func StringArrayP(name, shorthand string, value []string, usage string) *[]string {