EncodedDefault returns the encoded value of the default value of the setting.
()
| 57 | |
| 58 | // EncodedDefault returns the encoded value of the default value of the setting. |
| 59 | func (d *DurationSetting) EncodedDefault() string { |
| 60 | return EncodeDuration(d.defaultValue) |
| 61 | } |
| 62 | |
| 63 | // DecodeToString decodes and renders an encoded value. |
| 64 | func (d *DurationSetting) DecodeToString(encoded string) (string, error) { |
nothing calls this directly
no test coverage detected