16 lines
271 B
Go
Raw Normal View History

2019-06-03 09:32:43 +00:00
package arn
import (
"os"
)
// IsProduction returns true if PRODUCTION is set to 1.
2019-06-03 09:32:43 +00:00
func IsProduction() bool {
return os.Getenv("PRODUCTION") == "1"
2019-06-03 09:32:43 +00:00
}
// IsDevelopment returns true if PRODUCTION is not set to 1.
2019-06-03 09:32:43 +00:00
func IsDevelopment() bool {
return !IsProduction()
}