goserv/vendor/github.com/joho/godotenv/autoload/autoload.go

16 lines
232 B
Go
Raw Normal View History

2020-09-28 09:57:05 +00:00
package autoload
/*
You can just read the .env file on import just by doing
import _ "github.com/joho/godotenv/autoload"
And bob's your mother's brother
*/
import "github.com/joho/godotenv"
func init() {
godotenv.Load()
}