feat(Go-StudyExample): 添加CloneExample,测试go语言的对象内存和深度克隆的实现关于对象克隆可参考文章[知乎-](https://zhuanlan.zhihu.com/p/59125443)、[知乎-](https://zhuanlan.zhihu.com/p/58065429)
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
Reference in New Issue
Block a user