feat(Go-StudyExample): 添加CloneExample,测试go语言的对象内存和深度克隆的实现关于对象克隆可参考文章[知乎-](https://zhuanlan.zhihu.com/p/59125443)、[知乎-](https://zhuanlan.zhihu.com/p/58065429)

This commit is contained in:
huangzj
2020-05-15 09:59:13 +08:00
parent 4feb1f61f2
commit dbda09379d
5 changed files with 213 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
/*
* @Author : huangzj
* @Time : 2020/5/15 9:54
* @Description
*/
package entity
type SynthesisRuleCmp struct {
*SynthesisRule
RemainingSynthesisTime int
Sort int
}
type SynthesisRule struct {
SynthesisId string `json:"SynthesisId"`
SynthesisNum int `json:"SynthesisNum"`
CostItems [][]int `json:"CostItems"`
SynthesisItems [][]int `json:"SynthesisItems"`
}