How to delete an element from a Slice in Golang
Order matters If you want to keep your array ordered, you have to shift all of the elements at the right of the deleting index by one to the left. Hopefully, this can be done easily in Golang: func remove(slice []int, s int) []int { return append(slice[:s], slice[s+1:]…) } However, this is inefficient because you … Read more