12 lines
201 B
Go
12 lines
201 B
Go
package sugar
|
|
|
|
import (
|
|
"github.com/spf13/viper"
|
|
|
|
"git.amok.space/yevhen/resource-scraper/types/constant"
|
|
)
|
|
|
|
func IsDev() bool {
|
|
return viper.GetString(constant.FlagEnv) == constant.DefaultEnvDev
|
|
}
|