(attrs []attrVal)
| 1298 | } |
| 1299 | |
| 1300 | func sortAttrs(attrs []attrVal) { |
| 1301 | sort.SliceStable(attrs, func(i, j int) bool { |
| 1302 | is := attrs[i].a.String() |
| 1303 | js := attrs[j].a.String() |
| 1304 | if is == js { |
| 1305 | // Compare by value |
| 1306 | return attrs[i].s.String() < attrs[j].s.String() |
| 1307 | } |
| 1308 | return is < js |
| 1309 | }) |
| 1310 | } |
| 1311 | |
| 1312 | func trimArrayAttrs(in []Attribute) []Attribute { |
| 1313 | out := []Attribute{} |
no test coverage detected