Skip to content

ToStringMapString: Breaking change in 1.9.0 #282

@andig

Description

@andig

Since #269 / c6df2d8, ToStringMapString returns nil if the input is empty. Before, in

cast/caste.go

Line 1004 in 01004f2

return m, fmt.Errorf("unable to cast %#v of type %T to %T", i, i, m)
this would return an empty map.

Is this breakage intentional? It is not documented and has caused evcc-io/evcc#22267.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions