Dnia 2021-02-04, o godz. 00:30:57 Selahaddin Harmankaya <selahaddinh...@gmail.com> napisaĆ(a):
> There are obviously more things to consider Slice is not an array, it is a _view_into_ an array. Many such views into the same array may exist simultaneously. A "remove element from _slice_" operation always must make a new array and copy all elements that you intend to stay. Current idiom using append will do this for you while being frank about costs. See: https://blog.golang.org/slices-intro and: https://www.digitalocean.com/community/tutorials/understanding-arrays-and-slices-in-go Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/20210206033222.44a6f191%40xmint.