Below functions are to satisfy the flag.Value interface
(s string)
| 25 | // Below functions are to satisfy the flag.Value interface |
| 26 | |
| 27 | func (d *durationValue) Set(s string) error { |
| 28 | v, err := time.ParseDuration(s) |
| 29 | if err != nil { |
| 30 | return err |
| 31 | } |
| 32 | *d = durationValue(v) |
| 33 | return err |
| 34 | } |
| 35 | |
| 36 | func (d *durationValue) Get() any { return time.Duration(*d) } |
| 37 |
nothing calls this directly
no test coverage detected