ipam/cmd/generic.go

10 lines
201 B
Go
Raw Permalink Normal View History

2023-03-23 13:53:46 +01:00
package cmd
func reverse(elements []string) []string {
for i := 0; i < len(elements)/2; i++ {
j := len(elements) - i - 1
elements[i], elements[j] = elements[j], elements[i]
}
return elements
2023-03-23 13:53:46 +01:00
}