mirror of https://github.com/spf13/viper.git
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
2
viper.go
2
viper.go
|
@ -209,7 +209,7 @@ func New() *Viper {
|
||||||
v.typeByDefValue = false
|
v.typeByDefValue = false
|
||||||
v.logger = slog.New(&discardHandler{})
|
v.logger = slog.New(&discardHandler{})
|
||||||
|
|
||||||
codecRegistry := codecRegistry{v: v}
|
codecRegistry := NewCodecRegistry()
|
||||||
|
|
||||||
v.encoderRegistry = codecRegistry
|
v.encoderRegistry = codecRegistry
|
||||||
v.decoderRegistry = codecRegistry
|
v.decoderRegistry = codecRegistry
|
||||||
|
|
Loading…
Reference in New Issue