mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2026-03-19 10:29:47 +08:00
21 lines
274 B
Go
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
|
|
}
|