You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configuration sources are hard-wired into the core of Viper. Similarly to encoding, not all sources might be necessary all the time, particularly remote sources, which actually pull in a large number of dependencies.
Configuration sources are hard-wired into the core of Viper. Similarly to encoding, not all sources might be necessary all the time, particularly remote sources, which actually pull in a large number of dependencies.
One of the goals of Viper 2 is lowering the number of dependencies and this is an area where we can do that, by creating a similar, library based solution to encoding.
Since every configuration internally is represented as
map[string]interface{}
, the interface could be as simple as:This would also be a step towards a better API.
Similarly to encoding, for the time being this should also be backwards compatible with Viper 1, so:
github.com/spf13/viper/internal
for the time beingThe internal library also allows us to compare the new library to the old implementation first, without exposing it.
The text was updated successfully, but these errors were encountered: