DecodeValue decodes the value into a float.
(encoded string)
| 71 | |
| 72 | // DecodeValue decodes the value into a float. |
| 73 | func (d *DurationSetting) DecodeValue(encoded string) (time.Duration, error) { |
| 74 | return time.ParseDuration(encoded) |
| 75 | } |
| 76 | |
| 77 | // Typ returns the short (1 char) string denoting the type of setting. |
| 78 | func (*DurationSetting) Typ() string { |
no outgoing calls
no test coverage detected