Golang Usuń element z tablicy
func RemoveIndex(s []string, index int) []string {
return append(s[:index], s[index+1:]...)
}
Wandering Wolf
func RemoveIndex(s []string, index int) []string {
return append(s[:index], s[index+1:]...)
}
a[i] = a[len(a)-1]
a = a[:len(a)-1]