Skip to content

Commit

Permalink
Merge pull request #141 from albertvaka/patch-1
Browse files Browse the repository at this point in the history
Document another viper footgun
  • Loading branch information
knadh committed Apr 22, 2022
2 parents f7f848b + f317e16 commit dd0c369
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -729,4 +729,5 @@ koanf is a lightweight alternative to the popular [spf13/viper](https://github.c
- Imposes arbitrary ordering conventions (eg: flag -> env -> config etc.)
- `Get()` returns references to slices and maps. Mutations made outside change the underlying values inside the conf map.
- Does non-idiomatic things such as [throwing away O(1) on flat maps](https://github.com/spf13/viper/blob/3b4aca75714a37276c4b1883630bd98c02498b73/viper.go#L1524).
- Viper treats keys that contain an empty map (eg: `my_key: {}`) as if they were not set (ie: `IsSet("my_key") == false`).
- There are a large number of [open issues](https://github.com/spf13/viper/issues).

0 comments on commit dd0c369

Please sign in to comment.