File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
77mapstructure is a Go library for decoding generic map values to structures
@@ -18,14 +18,12 @@ structure.
1818For 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
3028The ` Decode ` function has examples associated with it there.
3129
Original file line number Diff line number Diff line change 1- module github.com/mitchellh /mapstructure
1+ module github.com/go-viper /mapstructure/v2
22
33go 1.18
You can’t perform that action at this time.
0 commit comments