go 删除数组元素

a := []int{0, 1, 2, 3, 4}
//删除第i个元素
i := 2
a = append(a[:i], a[i+1:]...)
原文地址:https://www.cnblogs.com/wangjq19920210/p/13189992.html