From 1d7909b7077799738a0003d39c26e9a0175ad107 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Wed, 10 Jan 2024 23:14:56 +0530 Subject: [PATCH] Replace obsolete 'mapstructure' lib with a new fork. Closes #262. --- go.mod | 2 +- go.sum | 4 ++-- koanf.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index ef7c1671..5d80a48f 100644 --- a/go.mod +++ b/go.mod @@ -3,9 +3,9 @@ module github.com/knadh/koanf/v2 go 1.18 require ( + github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1 github.com/knadh/koanf/maps v0.1.1 github.com/mitchellh/copystructure v1.2.0 - github.com/mitchellh/mapstructure v1.5.0 ) require github.com/mitchellh/reflectwalk v1.0.2 // indirect diff --git a/go.sum b/go.sum index f8968e90..a35d2f97 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,8 @@ +github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1 h1:TQcrn6Wq+sKGkpyPvppOz99zsMBaUOKXq6HSv655U1c= +github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= github.com/knadh/koanf/maps v0.1.1 h1:G5TjmUh2D7G2YWf5SQQqSiHRJEjaicvU0KpypqB3NIs= github.com/knadh/koanf/maps v0.1.1/go.mod h1:npD/QZY3V6ghQDdcQzl1W4ICNVTkohC8E73eI2xW4yI= github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= -github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= -github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= diff --git a/koanf.go b/koanf.go index 665f0dfd..bd06a2d7 100644 --- a/koanf.go +++ b/koanf.go @@ -10,7 +10,7 @@ import ( "github.com/knadh/koanf/maps" "github.com/mitchellh/copystructure" - "github.com/mitchellh/mapstructure" + "github.com/go-viper/mapstructure/v2" ) // Koanf is the configuration apparatus.