Skip to content

Commit

Permalink
Merge pull request #79 from TomWright/master
Browse files Browse the repository at this point in the history
Update module package to v2 and update readme
  • Loading branch information
clbanning authored Oct 28, 2020
2 parents 7fe4e10 + 229fb03 commit 94b5a6b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
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/clbanning/mxj
module github.com/clbanning/mxj/v2

go 1.15
11 changes: 11 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ Decode/encode XML to/from map[string]interface{} (or JSON) values, and extract/m

mxj supplants the legacy x2j and j2x packages. If you want the old syntax, use mxj/x2j and mxj/j2x packages.

<h4>Installation</h4>
```
go get github.com/clbanning/mxj/[email protected]
```

```
import "github.com/clbanning/mxj/v2"
data, _ := mxj.NewMapXml([]byte(`<user><name>xxx</name></user>`))
```

<h4>Related Packages</h4>

https://github.com/clbanning/checkxml provides functions for validating XML data.
Expand Down

0 comments on commit 94b5a6b

Please sign in to comment.