Skip to content

Commit

Permalink
Fix for issue go-yaml#144
Browse files Browse the repository at this point in the history
Signed-off-by: Vinzenz Feenstra <evilissmo@redhat.com>
  • Loading branch information
Vinzenz Feenstra committed Mar 27, 2017
1 parent e826d20 commit 84a1aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (e *encoder) marshal(tag string, in reflect.Value) {
}
case reflect.Struct:
e.structv(tag, in)
case reflect.Slice:
case reflect.Slice, reflect.Array:
if in.Type().Elem() == mapItemType {
e.itemsv(tag, in)
} else {
Expand Down

0 comments on commit 84a1aec

Please sign in to comment.