Get retrieves the duration value in the setting.
(sv *Values)
| 38 | |
| 39 | // Get retrieves the duration value in the setting. |
| 40 | func (d *DurationSetting) Get(sv *Values) time.Duration { |
| 41 | return time.Duration(sv.getInt64(d.slot)) |
| 42 | } |
| 43 | |
| 44 | func (d *DurationSetting) String(sv *Values) string { |
| 45 | return EncodeDuration(d.Get(sv)) |