| 179 | func Swap(sortables Sortables, i, j int) { sortables[i], sortables[j] = sortables[j], sortables[i] } |
| 180 | |
| 181 | func toPrintable(sortable []whisk.Sortable) []whisk.Printable { |
| 182 | sortedPrintable := make([]whisk.Printable, len(sortable), len(sortable)) |
| 183 | for i := range sortable { |
| 184 | sortedPrintable[i] = sortable[i].(whisk.Printable) |
| 185 | } |
| 186 | return sortedPrintable |
| 187 | } |
| 188 | |
| 189 | // Prints the parameters/list for wsk xxxx list |
| 190 | // Identifies type and then copies array into an array of interfaces(Sortable) to be sorted and printed |