build(conf): 更新配置文件处理依赖
- 在 app/facade/conf 和 app/user/conf 模块中添加 validator 和 yaml 库的导入 - 调整导入库的顺序,提高代码可读性
This commit is contained in:
parent
1f3066be16
commit
56839f5ded
@ -2,11 +2,12 @@ package conf
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
"os"
|
||||
"sync"
|
||||
|
||||
"github.com/cloudwego/hertz/pkg/common/hlog"
|
||||
"github.com/kr/pretty"
|
||||
"gopkg.in/validator.v2"
|
||||
"gopkg.in/yaml.v2"
|
||||
"os"
|
||||
"sync"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -10,6 +10,8 @@ import (
|
||||
"github.com/kr/pretty"
|
||||
_ "github.com/spf13/viper"
|
||||
_ "github.com/spf13/viper/remote"
|
||||
"gopkg.in/validator.v2"
|
||||
"gopkg.in/yaml.v2"
|
||||
)
|
||||
|
||||
var (
|
||||
|
Loading…
x
Reference in New Issue
Block a user