On Tue, 15 Oct 2019 03:16:35 -0700 (PDT) Stuart Davies <sdd.dav...@gmail.com> wrote:
> Hi > > I have a slice backed by an array. > > My understanding is that I can extend the slice (append) up to the > capacity of the array. Its good understanding. > Append fails when the backing array indexes are exceeded. "exceeded" means "over the capacity" > I know there must be an array copy function that will do this more > efficiently but I failed to find it! It is a built-in function and is aptly named "copy": https://golang.org/ref/spec#Appending_and_copying_slices > Please help. 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/20191015133246.111bd096%40zuzia.