Mergo
Fill empty fields in a Go value using values from another record.
darccio · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
In a new Go module, add dario.cat/mergo at v1.0.2. Apply fictional default count and name fields to a partly filled record.
What we tested
v1.0.2. Apply fictional default count and name fields to a partly filled record. Filled the missing fixture count and preserved the original name.