📜  golang iterate reverse slice - Go 编程语言代码示例
📅  最后修改于: 2022-03-11 14:45:00.176000             🧑  作者: Mango
代码示例1
s := []int{5, 4, 3, 2, 1}
for i := len(s)-1; i >= 0; i-- {
fmt.Println(s[i])
}