1 package mergo_test 2 3 import ( 4 "testing" 5 6 "github.com/imdario/mergo" 7 ) 8 9 type structWithBlankField struct { 10 _ struct{} 11 A struct{} 12 } 13 14 func TestIssue174(t *testing.T) { 15 dst := structWithBlankField{} 16 src := structWithBlankField{} 17 18 if err := mergo.Merge(&dst, src, mergo.WithOverride); err != nil { 19 t.Error(err) 20 } 21 } 22