gotenv icon indicating copy to clipboard operation
gotenv copied to clipboard

Ignore missing files and options

Open jooola opened this issue 4 years ago • 1 comments

I wanted to be able to ignore missing .env file, because I sometimes directly load environment variable without using the .env file (docker, or else ...).

So I wonder whether this package is open to add such options or if you want to keep it simple stupid ? Meaning that I will have to check if the files exists myself before loading.

Therefore I'd like to propose a extra LoadWithOptions function that allows on to define options such as IgnoreMissingFiles.

jooola avatar Jun 04 '20 09:06 jooola

That's something you can handle on your code right?

luisdavim avatar May 21 '22 21:05 luisdavim