ilyakaznacheev / cleanenv

✨Clean and minimalistic environment configuration reader for Golang
MIT License
1.67k stars 116 forks source link

Env-required with empty variable #148

Open evgeek opened 2 months ago

evgeek commented 2 months ago

Hi! I have a question about the env-required validation rule.

It works fine when the variable is not present in the .env file. But if it is present and empty - the validation error is not triggered. Is this the expected behavior? In my opinion, a required variable cannot be empty.

Or maybe this is another way to ensure such a check?