Copier
Copy matching fields between Go records or slices.
jinzhu · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
In a new Go module, add github.com/jinzhu/copier at v0.4.0. Copy a sample stock record into a distinct destination type.
What we tested
v0.4.0. Copy a sample stock record into a distinct destination type. Copied the matching fictional item without needing the extra source field.