(attrs []attrVal)
| 1489 | } |
| 1490 | |
| 1491 | func sortAttrs(attrs []attrVal) { |
| 1492 | sort.SliceStable(attrs, func(i, j int) bool { |
| 1493 | is := attrs[i].a.String() |
| 1494 | js := attrs[j].a.String() |
| 1495 | if is == js { |
| 1496 | // Compare by value |
| 1497 | return attrs[i].s.String() < attrs[j].s.String() |
| 1498 | } |
| 1499 | return is < js |
| 1500 | }) |
| 1501 | } |
| 1502 | |
| 1503 | func trimArrayAttrs(in []Attribute) []Attribute { |
| 1504 | out := []Attribute{} |
no test coverage detected