Unmarshal() does not use the env variable if the config file has no that key #1236
Closed
2 tasks done
Labels
kind/enhancement
New feature or request
resolution/duplicate
This issue or pull request already exists
Preflight Checklist
Viper Version
1.9.0
Go Version
1.16
Config Source
Environment variables, Files
Format
YAML
Repl.it link
No response
Code reproducing the issue
Expected Behavior
cfg.PoolSize == 100
Actual Behavior
cfg.PoolSize == 0
Steps To Reproduce
NOTE: only when the poolSize is defined in config file, the env override works
Additional Information
No response
The text was updated successfully, but these errors were encountered: