GoLang: How to delete an element from a 2D slice?
问题 I've recently been messing around with Go and I wanted to see how it would be to delete an element from a two-dimensional slice. For deleting an element from a one-dimensional slice, I can successfully use: data = append(data[:i], data[i+1:]...) However, with a two-dimensional slice, using: data = append(data[i][:j], data[i][j+1:]...) throws the error: cannot use append(data[i][:j], data[i][j+1:]...) (type []string) as type [][]string in assignment Would tackling this require a different