On Fri, Mar 3, 2017 at 6:49 PM, T L <tapir....@gmail.com> wrote: > After all, the len and cap fields of any value of string and slice values > are immutable. >
This is slices and strings are currently. A string value contains a length and a pointer to some bytes. A slice contains a length, capacity and a pointer to an array of it's type. https://research.swtch.com/godata -- 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.