go env

Load env without any package

Without package/library we can load our env from file. And it is cumbersome when we have to load it in console

What we need to do:

  1. create .env file

touch .env

2. type your env

export SO_SECRET=s3cr3t
export NOT_SO_SECRET=no_secret

3. ignore .env file in .gitignore

when you need to export your env , just type in console source ./.env

--

--