Golang拷贝工具包| copier

2020年4月4日 0 条评论 2.5k 次阅读 0 人点赞

做个记录,用于结构体和结构体之间的拷贝

下载地址: https://github.com/jinzhu/copier

特性:

  • Copy from field to field with same name
  • Copy from method to field with same name
  • Copy from field to method with same name
  • Copy from slice to slice
  • Copy from struct to slice

兰陵美酒郁金香

大道至简 Simplicity is the ultimate form of sophistication.

文章评论(0)

你必须 登录 才能发表评论