1 package preference 2 3 type MinimumDurationValueError struct{} 4 5 func NewMinimumDurationValueError() MinimumDurationValueError { 6 return MinimumDurationValueError{} 7 } 8 9 func (v MinimumDurationValueError) Error() string { 10 return "value must be a positive Duration (e.g. 4s, 5m, 1h); minimum value: 1s" 11 } 12