But it fails at the Encode part with error "reflect.Value.Slice: slice of unaddressable array (field Map)". Is encoding go maps that uses arrays as its key supported?
I was not even aware that we could use arrays in map-indexes ;) One thing I saw also is that map[string]otherStruct doesn't work, but map[string]*otherStructdoes work.
I wrote the following test in
encoding_test.go
:But it fails at the
Encode
part with error "reflect.Value.Slice: slice of unaddressable array (field Map)". Is encoding go maps that uses arrays as its key supported?