kelseyhightower / envconfig

Golang library for managing configuration data from environment variables
MIT License
5.01k stars 377 forks source link

time.Duration support for days notation #188

Open naueramant opened 3 years ago

naueramant commented 3 years ago

Right now the time.Duration field can only parse the units supported by time.Parse which is "ns", "us" (or "µs"), "ms", "s", "m", "h".

Would there be an interest in adding support for days? This would make some real world configurations such as "365d" instead of "9125h" a lot more readable.