Skip to content

Commit

Permalink
Create bullet.env
Browse files Browse the repository at this point in the history
  • Loading branch information
Bulletdev authored Dec 5, 2024
1 parent c868d82 commit 90fb051
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bullet.env
Original file line number Diff line number Diff line change
@@ -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"),
}
}

0 comments on commit 90fb051

Please sign in to comment.