Skip to content

Commit

Permalink
Merge pull request #9 from go-viper/update-module-path
Browse files Browse the repository at this point in the history
feat!: update module path
  • Loading branch information
sagikazarmark authored Dec 19, 2023
2 parents 8110e71 + 51c4978 commit 49c069e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# mapstructure

[![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)
[![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)
[![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)
![Go Version](https://img.shields.io/badge/go%20version-%3E=1.18-61CFDD.svg?style=flat-square)

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

```shell
go get github.com/mitchellh/mapstructure
go mod edit -replace github.com/mitchellh/mapstructure=github.com/go-viper/mapstructure
go mod tidy
go get github.com/go-viper/mapstructure/v2
```

## Usage & Example

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

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

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/mitchellh/mapstructure
module github.com/go-viper/mapstructure/v2

go 1.18

0 comments on commit 49c069e

Please sign in to comment.