Closed jirevwe closed 2 years ago
Validate time duration strings. Strings like 1h2m are valid time durations but today I have to use alphanum validate it and then use time.ParseDuration() in my code to check if it's a valid time duration.
1h2m
alphanum
time.ParseDuration()
I'm happy to work on it and submit a PR.
Feature Request
Summary
Validate time duration strings. Strings like
1h2m
are valid time durations but today I have to usealphanum
validate it and then usetime.ParseDuration()
in my code to check if it's a valid time duration.I'm happy to work on it and submit a PR.