build(conf): 更新配置文件处理依赖

- 在 app/facade/conf 和 app/user/conf 模块中添加 validator 和 yaml 库的导入
- 调整导入库的顺序,提高代码可读性
This commit is contained in:
suyiiyii 2025-01-20 23:46:29 +08:00
parent 1f3066be16
commit 56839f5ded
Signed by: suyiiyii
GPG Key ID: 044704CB29B8AD85
2 changed files with 6 additions and 3 deletions

View File

@ -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 (

View File

@ -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 (