Thanks! anyway to get a reference to that new array without using reflect?
On Sunday, March 12, 2017 at 12:13:03 PM UTC-7, Jan Mercl wrote: > > On Sunday, March 12, 2017 at 11:49:33 AM UTC-7, st ov wrote: > > > What happens when appending to a slice exceeds the backing capacity? > > If the capacity of s is not large enough to fit the additional values, > append allocates a new, sufficiently large underlying array that fits both > the existing slice elements and the additional values. Otherwise, append > re-uses the underlying array. > > src: https://golang.org/ref/spec#Appending_and_copying_slices > > -- > > -j > -- 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. For more options, visit https://groups.google.com/d/optout.