feat(Go-StudyExample):

2021/01/07:新增copier源码阅读和单测代码
This commit is contained in:
Huangzj
2021-01-07 09:23:37 +08:00
parent 9c93a35685
commit b5a1909eb0
8 changed files with 567 additions and 0 deletions
+6
View File
@@ -54,4 +54,10 @@ func TestCopier(t *testing.T) {
//不同的结构体数组的转换
_ = copier.Copy(&employees, &users)
fmt.Println(fmt.Sprintf("%#v\n", employee))
i := 10
var j int
err := copier.Copy(&i, &j)
fmt.Println(err, j)
}