autoload.go 232 B

123456789101112131415
  1. package autoload
  2. /*
  3. You can just read the .env file on import just by doing
  4. import _ "github.com/joho/godotenv/autoload"
  5. And bob's your mother's brother
  6. */
  7. import "github.com/joho/godotenv"
  8. func init() {
  9. godotenv.Load()
  10. }