diff --git a/autoload/autoload.go b/autoload/autoload.go new file mode 100644 index 0000000..5cfcea8 --- /dev/null +++ b/autoload/autoload.go @@ -0,0 +1,15 @@ +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() +}