Port of bkeepers/dotenv to Go language.
Loads environment variables from .env file. Useful for development configuration.
Get started:
go get github.com/lazureykis/dotenv
cd $GOPATH/src/github.com/lazureykis/dotenv/example
go run main.go
Usage:
import "github.com/lazureykis/dotenv"
func main() {
dotenv.Go()
// or dotenv.GoWithPath('/full/path/to/.env_file')
}