feat(encoding): use new codec registry

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar 2024-06-24 15:11:28 +02:00
parent 82b4d8357d
commit 42d4cb2065
No known key found for this signature in database
GPG key ID: 31AB0439F4C5C90E

View file

@ -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