resource-scraper/helper/sugar/env.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
}