Skip to content

Commit

Permalink
issue #89
Browse files Browse the repository at this point in the history
  • Loading branch information
clbanning committed Feb 17, 2021
1 parent 96f9c87 commit 13245dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xml.go
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,8 @@ func marshalMapToXmlIndent(doIndent bool, b *bytes.Buffer, key string, value int
case map[string]interface{}, []byte, string, float64, bool, int, int32, int64, float32, json.Number:
case []map[string]interface{}, []string, []float64, []bool, []int, []int32, []int64, []float32, []json.Number:
case []interface{}:
case nil:
value = ""
default:
// see if value is a struct, if so marshal using encoding/xml package
if reflect.ValueOf(value).Kind() == reflect.Struct {
Expand Down

0 comments on commit 13245dc

Please sign in to comment.