aws-sdk-go
aws-sdk-go copied to clipboard
#3711: MarshalMap error
Proposed resolution to #3711.
nil is still marshaled as an empty map, but other types will now return an error.
A slightly more complex variant would be to check that the input type is non-zero, so that e.g. a non-empty list would not cause an error. I'm not convinced that this would be helpful, though.