fix(conf): add warning about the file when we want to use the yaml

This commit is contained in:
HuangJiaLuo 2021-10-06 18:55:23 +08:00
parent 5292163b14
commit 36e8efd682
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ import (
func TestConf(t *testing.T) {
// 外部导入 conf.yaml 需要导入 conf 包
// 每次迁移文件时, 使用 sudo make init-conf来将yam文件迁移到指定的文件夹下
// get 使用, 读取 public_conf 配置文件
h := viper.Get("storage.host")
require.Equal(t, h, "127.0.0.1")