caarlos0/env: A simple and zero-dependencies library to parse environment variables into structs.

3206
STARS
22
WATCHERS
203
FORKS
6
ISSUES

env Recent Issues

Issue Title State Comments Created Date Updated Date
Proposal: Adding Fallback to Default Value Option for Empty Environment Variables closed 3 2023-01-11 2023-01-25
New feature: custom method to fetch env closed 1 2022-12-02 2023-01-25
Proposal: Support for error types open 4 2022-11-22 2023-01-25
Read from multiple environment variables in order closed 1 2022-11-11 2023-01-25
Non-struct pointer values cannot be used closed 4 2022-08-31 2023-01-25
Pointer structs not created with env prefixes open 2 2022-08-31 2023-01-25
env: no parser found for field "<FIELD>" of type "map[string]string closed 1 2022-07-27 2023-01-25
Nested fields + `RequiredIfNoDef: true` closed 0 2022-07-01 2023-01-25
[bug] []byte conversion closed 3 2022-05-25 2023-01-25
sporadic concurrent map read and map write issue - when using custom parsers closed 4 2022-04-26 2023-01-25
Doesn't seem to error out if env isn't set, even if required is set closed 2 2022-04-07 2023-01-25
Support prefix to map closed 1 2022-03-28 2023-01-25
default struct pointer to nil closed 1 2022-03-22 2023-01-25
FR: Add Function to SetEnv from a *struct closed 1 2022-02-24 2023-01-25
Option for default prefix for nested structs closed 2 2022-01-10 2023-01-25
Compile list of missing variables before erroring closed 2 2022-01-10 2023-01-25
I wrote a code generator that will generate functional options from the env struct closed 1 2022-01-08 2023-01-25
Env prefixes doesn't work with pointers closed 1 2021-11-30 2023-01-25
Prefix for fields closed 2 2021-10-25 2022-01-16
struct initial values should precede default values from tags closed 0 2021-10-17 2023-01-25
Build is broken (gofumpt) due to CRLF in .go files closed 1 2021-10-15 2023-01-25
Default values with inner structs don't seem to be working properly closed 2 2021-10-09 2023-01-25
Go get by default gets old version closed 0 2021-08-13 2023-01-25
Debug message when relying on default values closed 2 2021-07-05 2023-01-25
Default values by filling the structure closed 3 2021-06-17 2023-01-25
Not reading my .env file closed 0 2021-06-08 2023-01-25
float64 seems is not working with the latest version closed 0 2021-06-02 2023-01-25
golangci-lint configuration is ignored closed 1 2021-05-15 2023-01-25
ParseWithFuncs does not work properly on v6 closed 2 2021-05-06 2023-01-25
Need help understanding how to use the custom parser closed 2 2021-03-03 2023-01-25
I got \n character on string suffix with file tag closed 2 2021-02-01 2023-01-25
Ignore env values for blank keys closed 2 2021-01-31 2023-01-25
Non-env fields being set to "::=::\" closed 1 2021-01-31 2023-01-25
Parse environment options should support overrides configuration along with os enivronments closed 1 2020-09-06 2023-01-25
Recursive processing of fields closed 4 2020-08-12 2023-01-25
required should return error when value is empty closed 5 2020-07-21 2023-01-25
Add possibility to directly decrypt values when parsing env closed 3 2020-06-30 2022-11-13
Unit tests fails with golang:1.14 closed 1 2020-05-22 2022-08-13
envDefault doesn't satisfy the required constraint closed 2 2020-05-13 2022-11-17
int32 is not supported after all? closed 3 2020-05-12 2023-01-15
I'd like to be able to specify the tag. For instance, instead of 'env' use 'json' closed 3 2020-04-29 2023-01-24
[Q] Possible to load []byte from file? closed 3 2020-04-07 2022-12-23
env prefix for reusing config objects closed 2 2019-12-23 2023-01-19
Support for prefix of env variables closed 1 2019-10-31 2023-01-29
curl-like syntax for reading values from file closed 1 2019-10-24 2023-01-27
DefaultEnv reuse across Vars? closed 2 2019-09-29 2023-01-13
Recursive struct parsing does not use `CustomParsers` closed 5 2019-05-13 2023-01-16
Bad import? closed 2 2019-05-07 2021-10-05
Support UnmarshalText interface closed 7 2019-04-30 2022-11-30
Broken go.mod closed 7 2019-04-30 2022-01-13

caarlos0's Other Repos