使用 viper 从 consul 读取配置文件

This commit is contained in:
2025-01-20 20:03:45 +08:00
parent ac288f01ca
commit 033579702f
3 changed files with 20 additions and 7 deletions
-2
View File
@@ -8,8 +8,6 @@ import (
"github.com/cloudwego/kitex/pkg/klog"
"github.com/kr/pretty"
_ "github.com/spf13/viper"
_ "github.com/spf13/viper/remote"
"gopkg.in/validator.v2"
"gopkg.in/yaml.v2"
)