1package mergo_test 2 3import ( 4 "testing" 5 "time" 6 7 "github.com/imdario/mergo" 8) 9 10type testStruct struct { 11 time.Duration 12} 13 14func TestIssue50Merge(t *testing.T) { 15 to := testStruct{} 16 from := testStruct{} 17 18 if err := mergo.Merge(&to, from); err != nil { 19 t.Fail() 20 } 21} 22