Skip to content

Commit 49c069e

Browse files
Merge pull request #9 from go-viper/update-module-path
feat!: update module path
2 parents 8110e71 + 51c4978 commit 49c069e

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# mapstructure
22

33
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/go-viper/mapstructure/ci.yaml?branch=main&style=flat-square)](https://github.com/go-viper/mapstructure/actions?query=workflow%3ACI)
4-
[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/mod/github.com/go-viper/mapstructure)
4+
[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/mod/github.com/go-viper/mapstructure/v2)
55
![Go Version](https://img.shields.io/badge/go%20version-%3E=1.18-61CFDD.svg?style=flat-square)
66

77
mapstructure is a Go library for decoding generic map values to structures
@@ -18,14 +18,12 @@ structure.
1818
For the time being, you can use this library as a drop-in replacement for the original library:
1919

2020
```shell
21-
go get github.com/mitchellh/mapstructure
22-
go mod edit -replace github.com/mitchellh/mapstructure=github.com/go-viper/mapstructure
23-
go mod tidy
21+
go get github.com/go-viper/mapstructure/v2
2422
```
2523

2624
## Usage & Example
2725

28-
For usage and examples see the [documentation](https://pkg.go.dev/mod/github.com/go-viper/mapstructure).
26+
For usage and examples see the [documentation](https://pkg.go.dev/mod/github.com/go-viper/mapstructure/v2).
2927

3028
The `Decode` function has examples associated with it there.
3129

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/mitchellh/mapstructure
1+
module github.com/go-viper/mapstructure/v2
22

33
go 1.18

0 commit comments

Comments
 (0)