定义了一个结构体
type TotalIssue struct {
IssueType string `json:"issue_type"`
Count int `json:"count"`
Donecount int `json:"donecount"`
}
最后获取到两个结果如下
[{QA 10 0} {OPS 7 0} {RDC 14 0} {TEST 1 0} {WWW 22 0}]
[{OPS 0 2} {TEST 0 1} {WWW 0 18}]
想将上面的结果合并成
[{QA 10 0} {OPS 7 2} {RDC 14 0} {TEST 1 1} {WWW 22 18}]