dotenv dotenv is a simple library for loading environment variables from a .env file into the current process. install go get -u github.com/unsafe-risk/dotenv grammar key=value dotenv file must have a new line(\n) at the end of each line. last line can skip new line.