Skip to content

Commit

Permalink
fix(server): add missing config/environment.go
Browse files Browse the repository at this point in the history
  • Loading branch information
namhq1989 committed Feb 25, 2024
1 parent abadaf5 commit fa665e6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions config/environment.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package config

import "os"

const (
envRelease = "release"
envDevelopment = "development"
)

func IsRelease() bool {
return os.Getenv("ENVIRONMENT") == envRelease
}

func IsDevelopment() bool {
return os.Getenv("ENVIRONMENT") == envDevelopment
}

0 comments on commit fa665e6

Please sign in to comment.