Let\'s say I have two similar types set this way :
type type1 []struct { Field1 string Field2 int } type type2 []struct { Field1 string Field
You can manually use a mapper function which maps each element of type t1 to type t2. It will work.
func GetT2FromT1(ob1 *t1) *t2 { ob2 := &t2 { Field1: t1.Field1, } return ob2 }