-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from TomWright/master
Update module package to v2 and update readme
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|