Skip to content

Commit fb8869b

Browse files
tklauserfredbi
authored andcommitted
Migrate to github.com/go-viper/mapstructure/v2
The github.com/mitchellh/mapstructure package is archived and no longer receives updates[^1]. The "blessed" fork[^2] is github.com/go-viper/mapstructure. The API is the same, so nothing needs to be changed apart from the import path. [^1]: mitchellh/mapstructure#349 [^2]: https://gist.github.com/mitchellh/90029601268e59a29e64e55bab1c5bdc Signed-off-by: Tobias Klauser <[email protected]>
1 parent 3dbbafa commit fb8869b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

format.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"time"
2424

2525
"github.com/go-openapi/errors"
26-
"github.com/mitchellh/mapstructure"
26+
"github.com/go-viper/mapstructure/v2"
2727
)
2828

2929
// Default is the default formats registry

format_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"testing"
2020
"time"
2121

22-
"github.com/mitchellh/mapstructure"
22+
"github.com/go-viper/mapstructure/v2"
2323
"github.com/stretchr/testify/assert"
2424
"github.com/stretchr/testify/require"
2525
)

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ module github.com/go-openapi/strfmt
33
require (
44
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2
55
github.com/go-openapi/errors v0.22.1
6+
github.com/go-viper/mapstructure/v2 v2.2.1
67
github.com/google/uuid v1.6.0
7-
github.com/mitchellh/mapstructure v1.5.0
88
github.com/oklog/ulid v1.3.1
99
github.com/stretchr/testify v1.10.0
1010
go.mongodb.org/mongo-driver v1.17.3

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
44
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
55
github.com/go-openapi/errors v0.22.1 h1:kslMRRnK7NCb/CvR1q1VWuEQCEIsBGn5GgKD9e+HYhU=
66
github.com/go-openapi/errors v0.22.1/go.mod h1:+n/5UdIqdVnLIJ6Q9Se8HNGUXYaY6CN8ImWzfi/Gzp0=
7+
github.com/go-viper/mapstructure/v2 v2.2.1 h1:ZAaOCxANMuZx5RCeg0mBdEZk7DZasvvZIxtHqx8aGss=
8+
github.com/go-viper/mapstructure/v2 v2.2.1/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
79
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
810
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
911
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
1012
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
11-
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
12-
github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
1313
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=
1414
github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4=
1515
github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=

0 commit comments

Comments
 (0)