mirror of
https://codeberg.org/lauralani/ipam.git
synced 2024-11-24 04:30:02 +01:00
10 lines
201 B
Go
10 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
|
||
|
}
|