A simple library to import environment variables from a file into your program at runtime. For large (files with more than 20 variables) it will split the env file into even chunks based on number of CPUs on your machine, then add the variables to your environment.
- Add to your project
go get github.com/ableinc/go-env
- Import in your project
import "github.com/ableinc/go-env"
goenv.LoadEnv(".env", false)