upadted to 1.24.0; fixed stb and spiddped doubles in precene
This commit is contained in:
11
helper/sugar/env.go
Normal file
11
helper/sugar/env.go
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user