Files
AynaLivePlayer/pkg/config/environment.go
aynakeya f926f15606 rewrite
2024-04-10 00:42:33 -07:00

21 lines
274 B
Go

package config
import (
"os"
)
type EnvType string
const (
Development EnvType = "development"
Production EnvType = "production"
)
func CurrentEnvironment() EnvType {
t := EnvType(os.Getenv("ENV"))
if t == Production {
return Production
}
return Development
}