2019-06-03 09:32:43 +00:00
|
|
|
package arn
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
)
|
|
|
|
|
2019-12-04 00:09:52 +00:00
|
|
|
// IsProduction returns true if PRODUCTION is set to 1.
|
2019-06-03 09:32:43 +00:00
|
|
|
func IsProduction() bool {
|
2019-12-04 00:09:52 +00:00
|
|
|
return os.Getenv("PRODUCTION") == "1"
|
2019-06-03 09:32:43 +00:00
|
|
|
}
|
|
|
|
|
2019-12-04 00:09:52 +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()
|
|
|
|
}
|