From cfb46826b00d26175fe3a54a9a078fdd289ab841 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Wed, 7 Feb 2024 21:50:39 +0100 Subject: [PATCH] chore: replace mitchellh/mapstructure by go-viper/mapstructure --- account.go | 2 +- contact.go | 2 +- domain.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- nameserver.go | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/account.go b/account.go index 0cdd53f..0907f81 100644 --- a/account.go +++ b/account.go @@ -1,6 +1,6 @@ package goinwx -import "github.com/mitchellh/mapstructure" +import "github.com/go-viper/mapstructure/v2" const ( methodAccountLogin = "account.login" diff --git a/contact.go b/contact.go index 32cabf2..0f94937 100644 --- a/contact.go +++ b/contact.go @@ -2,7 +2,7 @@ package goinwx import ( "github.com/fatih/structs" - "github.com/mitchellh/mapstructure" + "github.com/go-viper/mapstructure/v2" ) const ( diff --git a/domain.go b/domain.go index 8e768d4..fb15b1b 100644 --- a/domain.go +++ b/domain.go @@ -6,7 +6,7 @@ import ( "time" "github.com/fatih/structs" - "github.com/mitchellh/mapstructure" + "github.com/go-viper/mapstructure/v2" ) const ( diff --git a/go.mod b/go.mod index 0cc499a..ff49c78 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,6 @@ go 1.19 require ( github.com/fatih/structs v1.1.0 + github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1 github.com/kolo/xmlrpc v0.0.0-20220921171641-a4b6fa1dd06b - github.com/mitchellh/mapstructure v1.5.0 ) diff --git a/go.sum b/go.sum index 675e1b5..a493a02 100644 --- a/go.sum +++ b/go.sum @@ -1,9 +1,9 @@ github.com/fatih/structs v1.1.0 h1:Q7juDM0QtcnhCpeyLGQKyg4TOIghuNXrkL32pHAUMxo= github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= +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/kolo/xmlrpc v0.0.0-20220921171641-a4b6fa1dd06b h1:udzkj9S/zlT5X367kqJis0QP7YMxobob6zhzq6Yre00= github.com/kolo/xmlrpc v0.0.0-20220921171641-a4b6fa1dd06b/go.mod h1:pcaDhQK0/NJZEvtCO0qQPPropqV0sJOJ6YW7X+9kRwM= -github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= -github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/nameserver.go b/nameserver.go index 3de359e..e1bc2f1 100644 --- a/nameserver.go +++ b/nameserver.go @@ -6,7 +6,7 @@ import ( "time" "github.com/fatih/structs" - "github.com/mitchellh/mapstructure" + "github.com/go-viper/mapstructure/v2" ) const (