Skip to content

Commit 90fb051

Browse files
authored
Create bullet.env
1 parent c868d82 commit 90fb051

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

bullet.env

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
type Config struct {
3+
Port string
4+
CorsOrigins []string
5+
DbURL string
6+
}
7+
8+
func LoadConfig() Config {
9+
return Config{
10+
Port: os.Getenv("API_PORT"),
11+
CorsOrigins: strings.Split(os.Getenv("CORS_ORIGINS"), ","),
12+
DbURL: os.Getenv("DATABASE_URL"),
13+
}
14+
}

0 commit comments

Comments
 (0)