ilyakaznacheev / cleanenv

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

.env.* support and possible to check require field after all config loading #138

Open JohnJ255 opened 5 months ago

JohnJ255 commented 5 months ago
  1. support files like .env.local, .env.dev etc... But I don't recommend use it if it possible. The better solution is config.yml for base configs and .env in .gitignore for environment changes
  2. you can disable check required fields during loading part of config and enable it again on read last file. See example

sorry for no tests, i hope somebody help me with that