Skip to content

Releases: clbanning/mxj

Fix mv.Exists method

23 Oct 19:20
Compare
Choose a tag to compare

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.

14 Sep 19:47
Compare
Choose a tag to compare

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.

26 Jul 23:59
Compare
Choose a tag to compare
add clbanning/anyxml functioality

Include change made to clbanning/anyxml to handle nil maps without panic.

Coerce map values to map[string]interface{}

18 Apr 19:54
Compare
Choose a tag to compare

incorporate new features, such as, gob encoding

29 Mar 20:57
Compare
Choose a tag to compare
v1.7

support gob encoding/decoding of/to Maps

cleanup vet issue in tests

23 Mar 15:50
Compare
Choose a tag to compare
v1.6.2

fix vet complaint for go v1.10

allow []string values in map as well as []interface{} values

21 Jun 13:25
Compare
Choose a tag to compare

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

18 Apr 15:20
Compare
Choose a tag to compare

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.

22 Feb 20:34
Compare
Choose a tag to compare

fix indexing error

09 Feb 17:21
Compare
Choose a tag to compare
1.4.1

add documentation for SetSubkeyFieldSeparator