On Tue, Oct 15, 2019 at 12:16 PM Stuart Davies <sdd.dav...@gmail.com> wrote:
> 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. I guess that by 'extend the slice' you mean reslicing. Yes, that can be done while len <= cap. However, appending is a different operation, performed by the predeclared function `append`. Please let us know what is the ultimate goal you need to achieve. Best is to share the minimal, compilable code you have already at the Go playground: https://play.golang.org -- 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/CAA40n-ViG7%2Bk1UdDJ_mqCfw0_-fA%3DiDRvenHbajES65NjxGgdA%40mail.gmail.com.