Releases: clbanning/mxj
Fix mv.Exists method
Correct variadic argument syntax and stub a test that fails when run with full test suite. Also, comment-out all examples, since "want" output values not guaranteed due to random sequence of map key:value pairs.
Add/refactor some wrapper methods.
While working an example for a reddit post reply, it seemed beneficial to have a new wrapper function to handle simple XML. Also, refactored an existing wrapper method to make it consistent and simpler to work with.
Handle nil maps and map values gracefully in AnyXml.
add clbanning/anyxml functioality Include change made to clbanning/anyxml to handle nil maps without panic.
Coerce map values to map[string]interface{}
addresses Issue #48
incorporate new features, such as, gob encoding
v1.7 support gob encoding/decoding of/to Maps
cleanup vet issue in tests
v1.6.2 fix vet complaint for go v1.10
allow []string values in map as well as []interface{} values
Semantically this should probably be v1.7, but the pull request with []string encoding came from left field based on manually creating a Map value rather than from NewMapXml or NewMapJson functions. I expect to fold it into the []interface{} marshaling "case" when I get some time. (It has never come up in over 4 years of hundreds of folks using this package.)
Deprecated NewMapStruct
There was no reason for NewMapStruct, and it was dependent on github.com/fatih/structs. It's easy enough from someone to explicitly import the structs package and write two lines as opposed to one -
sm, err := structs.Map(<some struct>)
if err != nil {
// handle error
}
m := mxj.Map(sm)
So don't make everyone vendor an extra package just for a function that most people aren't using anyway.
Options for argument and output syntax.
1.5 add notice to docs
fix indexing error
1.4.1 add documentation for SetSubkeyFieldSeparator