1 Star 0 Fork 0

marcello / go-common

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
config.go 239 Bytes
一键复制 编辑 原始数据 按行查看 历史
marcello 提交于 2021-05-16 20:33 . -
package internal
import (
"github.com/spf13/viper"
)
// IsSupportedExt 判断配置后缀是否支持
func IsSupportedExt(ext string) bool {
for _, v := range viper.SupportedExts {
if ext == v {
return true
}
}
return false
}
Go
1
https://gitee.com/marcellos/go-common.git
git@gitee.com:marcellos/go-common.git
marcellos
go-common
go-common
e809a504da49

搜索帮助