mirror of
https://codeberg.org/lauralani/ipam.git
synced 2024-11-23 20:20:39 +01:00
9 lines
201 B
Go
9 lines
201 B
Go
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
|
|
}
|