Skip to content

Commit

Permalink
Document another viper footgun
Browse files Browse the repository at this point in the history
  • Loading branch information
albertvaka committed Apr 20, 2022
1 parent f7f848b commit f317e16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
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 f317e16

Please sign in to comment.