Skip to content

To support copy []any -> []T. #234

@happier233

Description

@happier233

Describe the feature

To support copy []any -> []T.

Motivation

When i try to copy []any(map[string]any(string)) to a []map[string]string, copier don't copy the value correctly. So i try figure out the reason. Then i found the slice copy logic stipulates that the values must be the same. But when the DeepCopy option is on, we can try to deep copy the any to the correct type T.

Related Issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions