(i, j int)
| 279 | } |
| 280 | |
| 281 | func (s TreeEntrySorter) Less(i, j int) bool { |
| 282 | name1 := s[i].Name |
| 283 | name2 := s[j].Name |
| 284 | if s[i].Mode == filemode.Dir { |
| 285 | name1 += "/" |
| 286 | } |
| 287 | if s[j].Mode == filemode.Dir { |
| 288 | name2 += "/" |
| 289 | } |
| 290 | return name1 < name2 |
| 291 | } |
| 292 | |
| 293 | func (s TreeEntrySorter) Swap(i, j int) { |
| 294 | s[i], s[j] = s[j], s[i] |
nothing calls this directly
no outgoing calls
no test coverage detected