mirror of
https://github.com/keven1024/015.git
synced 2026-06-04 19:39:36 +00:00
refactor: update environment variable handling to use GetEnvMap for improved type safety and add feature extraction functionality
This commit is contained in:
@@ -22,7 +22,7 @@ func TestInitEnvAndGetEnv(t *testing.T) {
|
||||
ConfigData: bytes.NewBufferString(jsonData),
|
||||
ConfigType: []string{"json"},
|
||||
}
|
||||
utils.InitEnv(props)
|
||||
utils.InitTestViper(props)
|
||||
|
||||
// GetEnv应能拿到值
|
||||
val := utils.GetEnv("test.value")
|
||||
|
||||
Reference in New Issue
Block a user