Open luoshaofeng opened 2 months ago
比如有结构体A和D
type A struct{ C int D *D } type D struct{ B int E int }
有切片var as []A,var ds[]D,以类似copier.Copy(&ds,as)的方式,直接把A.D拷贝到ds切片中
简化代码,不用遍历A切片
Describe the feature
比如有结构体A和D
有切片var as []A,var ds[]D,以类似copier.Copy(&ds,as)的方式,直接把A.D拷贝到ds切片中
Motivation
简化代码,不用遍历A切片
Related Issues