baoyachi / duration-str

duration string parser write by Rust.Playground:
https://baoyachi.github.io/duration-str/
30 stars 9 forks source link

add config check function #2

Closed baoyachi closed 2 years ago

baoyachi commented 3 years ago

motivation

Sometimes when use config duration-str into xxx.toml file. But to ensure safety, in code also add config duration check. So add check config validate function is very useful.