// parseDuration parses val as a duration.
// Accepts strings.
parseDuration parses val as a duration.
Accepts strings.
// parseDuration parses val as a duration . // Accepts strings .
func parseDuration(val interface{}) (time.Duration, error) {
	s, ok := val.(string)
	if !ok {
		return 0, errors.New("cannot parse as duration")
	}
	return time.ParseDuration(s)
}
func parseDuration ( val interface { } ) ( time . Duration , error ) { s , ok := val . ( string ) if ! ok { return 0 , errors . New ( " " ) } return time . ParseDuration ( s ) }
parseDuration parses val as a duration.
parseDuration parses val as a duration .