1
0
mirror of https://github.com/Luzifer/rconfig.git synced 2024-09-19 17:03:00 +00:00
Commit Graph

13 Commits

Author SHA1 Message Date
80dd107159
Fix: Ensure int/uint do not overflow
by utilizing correct parsing for the requested type in strconv

Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-08-27 15:47:47 +02:00
6f0f872a04
Fix: Add support for int16 flags
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-08-27 15:47:03 +02:00
c1c878fab9
Update deps, fix linter errors, bump min Go version
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-12-20 12:13:59 +01:00
f4e07b507a
Add support for time.Time flags
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-09-18 00:19:51 +02:00
f2a0efe97c
Add AutoEnv feature
to automatically derive environment variable names from struct field
names

Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-08-02 12:02:47 +02:00
98c74390c0
Breaking: Ensure an empty default string does not yield a slice with 1 element
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-08-02 09:18:59 +02:00
fbcc119420
Add ParseAndValidate method
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-06-19 14:23:31 +02:00
02c6b11d62
Support time.Duration config parameters 2016-06-28 12:31:23 +02:00
d8a62bd35f Added Args() function to retrieve positional arguments 2015-12-14 02:04:12 +01:00
d194dded1e Do not enforce canonical import path
fixes #2
2015-09-19 14:21:13 +02:00
da841b2cc9 Ensured precdence with a test, added documentation 2015-09-08 23:11:35 +02:00
7cb1e0ee85 Added VarDefault functionality 2015-09-08 22:07:57 +02:00
0c78105a26 Initial version of rconfig 2015-07-12 12:36:18 +02:00