diff --git a/go.mod b/go.mod index 6797f72..7bd84fe 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/clbanning/mxj +module github.com/clbanning/mxj/v2 go 1.15 diff --git a/readme.md b/readme.md index e03ed46..9e6496e 100644 --- a/readme.md +++ b/readme.md @@ -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. +

Installation

+``` +go get github.com/clbanning/mxj/v2@v2.3.2 +``` + +``` +import "github.com/clbanning/mxj/v2" + +data, _ := mxj.NewMapXml([]byte(`xxx`)) +``` +

Related Packages

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