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.
(p *[]time.Duration, name string, value []time.Duration, usage string)
| 120 | // DurationSliceVar defines a durationSlice flag with specified name, default value, and usage string. |
| 121 | // The argument p points to a []time.Duration variable in which to store the value of the flag. |
| 122 | func (f *FlagSet) DurationSliceVar(p *[]time.Duration, name string, value []time.Duration, usage string) { |
| 123 | f.VarP(newDurationSliceValue(value, p), name, "", usage) |
| 124 | } |
| 125 | |
| 126 | // DurationSliceVarP is like DurationSliceVar, but accepts a shorthand letter that can be used after a single dash. |
| 127 | func (f *FlagSet) DurationSliceVarP(p *[]time.Duration, name, shorthand string, value []time.Duration, usage string) { |