| | |
| | | |
| | | import ( |
| | | "fmt" |
| | | "ruleprocess/logger" |
| | | "basic.com/valib/logger.git" |
| | | "ruleprocess/structure" |
| | | "strings" |
| | | "time" |
| | |
| | | func (p SubList) Less(i, j int) bool { return p[i].Sort < p[j].Sort } |
| | | |
| | | // 结构体根据某字段排序 |
| | | type resultList []*structure.LittleRuleResult |
| | | type ResultList []*structure.LittleRuleResult |
| | | |
| | | func (p resultList) Swap(i, j int) { p[i], p[j] = p[j], p[i] } |
| | | func (p resultList) Len() int { return len(p) } |
| | | func (p resultList) Less(i, j int) bool { return p[i].Sort < p[j].Sort } |
| | | func (p ResultList) Swap(i, j int) { p[i], p[j] = p[j], p[i] } |
| | | func (p ResultList) Len() int { return len(p) } |
| | | func (p ResultList) Less(i, j int) bool { return p[i].Sort < p[j].Sort } |