feature: viper 读取gin自带的环境变量GIN_MODE,用于区分开发,测试,生产三个环境 #1098 (#1105)

This commit is contained in:
SliverHorn
2022-05-30 22:33:14 +08:00
committed by GitHub
parent 4dd9c06850
commit 3bb4d74fab
3 changed files with 38 additions and 22 deletions
-6
View File
@@ -1,6 +0,0 @@
package utils
const (
ConfigEnv = "GVA_CONFIG"
ConfigFile = "config.yaml"
)