我有一个切片:
mySlice := []int{4,5,6,7} myelement := 3
我想myelement在索引处插入0,以便我的输出为[3,4,5,6,7].
myelement
0
[3,4,5,6,7]
我怎样才能做到这一点?
go slice
go ×1
slice ×1