mirror of
https://github.com/spf13/viper
synced 2024-11-05 04:37:02 +00:00
feat(encoding): use new codec registry
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
parent
6e630e548a
commit
7f90845afc
1 changed files with 1 additions and 1 deletions
2
viper.go
2
viper.go
|
@ -209,7 +209,7 @@ func New() *Viper {
|
|||
v.typeByDefValue = false
|
||||
v.logger = slog.New(&discardHandler{})
|
||||
|
||||
codecRegistry := codecRegistry{v: v}
|
||||
codecRegistry := NewCodecRegistry()
|
||||
|
||||
v.encoderRegistry = codecRegistry
|
||||
v.decoderRegistry = codecRegistry
|
||||
|
|
Loading…
Reference in a new issue