I know it can be accessed the question relates to this http://stackoverflow.com/questions/36706843/how-to-get-the-underlying-array-of-a-slice-in-go
On Sunday, March 12, 2017 at 10:01:11 PM UTC-7, Jan Mercl wrote: > > What is a reference to the array? To access the array use the slice itself > as usual, no reflect needed. > > On Mon, Mar 13, 2017, 01:37 st ov <so.q...@gmail.com <javascript:>> wrote: > >> 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...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- > > -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.