Skip to content
Assured environment variable loading for golang
Go
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
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.

You can’t perform that action at this time.