Duration is a time.Duration with JSON unmarshaling that uses time.ParseDuration.
| 11 | // Duration is a time.Duration with JSON unmarshaling that uses |
| 12 | // time.ParseDuration. |
| 13 | type Duration struct { |
| 14 | time.Duration |
| 15 | } |
| 16 | |
| 17 | // UnmarshalJSON fulfills the encoding/json.Unmarshaler interface. |
| 18 | // It attempts to parse text as a time.Duration string. |
nothing calls this directly
no outgoing calls
no test coverage detected