Skip to content

Commit

Permalink
readme: Document required but empty behavior for kelseyhightower#71 (k…
Browse files Browse the repository at this point in the history
  • Loading branch information
jhillyerd authored and teepark committed May 24, 2019
1 parent 54c0e69 commit d3cf2cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ If envconfig can't find an environment variable value for `MYAPP_DEFAULTVAR`,
it will populate it with "foobar" as a default value.

If envconfig can't find an environment variable value for `MYAPP_REQUIREDVAR`,
it will return an error when asked to process the struct.
it will return an error when asked to process the struct. If
`MYAPP_REQUIREDVAR` is present but empty, envconfig will not return an error.

If envconfig can't find an environment variable in the form `PREFIX_MYVAR`, and there
is a struct tag defined, it will try to populate your variable with an environment
Expand Down

0 comments on commit d3cf2cd

Please sign in to comment.