From 90fb05171d22e60d553dc453aa313c4cf666d275 Mon Sep 17 00:00:00 2001 From: Michael Bullet Date: Thu, 5 Dec 2024 09:00:35 -0300 Subject: [PATCH] Create bullet.env --- bullet.env | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 bullet.env diff --git a/bullet.env b/bullet.env new file mode 100644 index 0000000..cf60cbf --- /dev/null +++ b/bullet.env @@ -0,0 +1,14 @@ + +type Config struct { + Port string + CorsOrigins []string + DbURL string +} + +func LoadConfig() Config { + return Config{ + Port: os.Getenv("API_PORT"), + CorsOrigins: strings.Split(os.Getenv("CORS_ORIGINS"), ","), + DbURL: os.Getenv("DATABASE_URL"), + } +}