Skip to content

Commit

Permalink
Update readme with installation and basic readme
Browse files Browse the repository at this point in the history
  • Loading branch information
TomWright committed Oct 28, 2020
1 parent 846437f commit 229fb03
Showing 1 changed file with 11 additions and 0 deletions.
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 229fb03

Please sign in to comment.