Assured environment variable loading for golang
Go
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
dotenv_safe.go
dotenv_safe_test.go

README.md

#dotenv_safe

Similar to this dotenv package:

https://github.com/joho/godotenv

This adds an assurance layer. It demands that particular environment variables be set and panics if they aren't.

It uses the same paradigm as this node package:

https://www.npmjs.com/package/dotenv-safe

Which is that required env variables are contained in an example.env file in the project's root.