Splice
#
Splicehttps://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/splice
Syntax: func Splice(elems *[]string, start, deleteCount int[, item ...string]) []string
The Splice() method changes the contents of an slice by removing or replacing existing elements and/or adding new elements in place.
Example-1
Example-2
Example-3