Skip to content

Commit

Permalink
Fix arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-legalweb committed May 21, 2019
1 parent a801ade commit 7a20856
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,14 @@ func deepMarshal(k string, v interface{}) error {
break
case []string:
tokens = append(tokens, ts)
for dv := range v.([]string) {
for _, dv := range v.([]string) {
deepMarshal("string", dv)
}
tokens = append(tokens, te)
break
case []interface{}:
tokens = append(tokens, ts)
for dv := range v.([]interface{}) {
for _, dv := range v.([]interface{}) {
deepMarshal(k, dv)
}
tokens = append(tokens, te)
Expand Down

0 comments on commit 7a20856

Please sign in to comment.