htmgo/framework/h/env.go

16 lines
238 B
Go
Raw Normal View History

package h
import "os"
func IsWatchMode() bool {
return os.Getenv("WATCH_MODE") == "true"
}
func IsDevelopment() bool {
return os.Getenv("ENV") == "development"
}
func IsProduction() bool {
return os.Getenv("ENV") == "production"
}