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
+9
View File
@@ -0,0 +1,9 @@
package internal
const (
ConfigEnv = "GVA_CONFIG"
ConfigDefaultFile = "config.yaml"
ConfigTestFile = "config.test.yaml"
ConfigDebugFile = "config.debug.yaml"
ConfigReleaseFile = "config.release.yaml"
)