You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,27 @@ structure.
19
19
go get github.com/go-viper/mapstructure/v2
20
20
```
21
21
22
+
## Migrating from `github.com/mitchellh/mapstructure`
23
+
24
+
[@mitchehllh](https://github.com/mitchellh) announced his intent to archive some of his unmaintained projects (see [here](https://gist.github.com/mitchellh/90029601268e59a29e64e55bab1c5bdc) and [here](https://github.com/mitchellh/mapstructure/issues/349)). This is a repository achieved the "blessed fork" status.
25
+
26
+
You can migrate to this package by changing your import paths in your Go files to `github.com/go-viper/mapstructure/v2`.
27
+
The API is the same, so you don't need to change anything else.
28
+
29
+
Here is a script that can help you with the migration:
30
+
31
+
```shell
32
+
sed -i 's/github.com\/mitchellh\/mapstructure/github.com\/go-viper\/mapstructure\/v2/g'$(find . -type f -name '*.go')
33
+
```
34
+
35
+
If you need more time to migrate your code, that is absolutely fine.
36
+
37
+
Some of the latest fixes are backported to the v1 release branch of this package, so you can use the Go modules `replace` feature until you are ready to migrate:
38
+
39
+
```shell
40
+
The repository will not go away and will only be archived
41
+
```
42
+
22
43
## Usage & Example
23
44
24
45
For usage and examples see the [documentation](https://pkg.go.dev/mod/github.com/go-viper/mapstructure/v2).
0 commit comments