What function does golang use to grow the capacity of slices initialized
with 0 len and cap during make ?
s := make(int,0)
intially capacity is 0,
As i append elements, the capacity seems to grow in powers of 2 . Beyond
1024 , it is not powers of 2.
Can you please tell me what function is used to grow the capacity ?
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 firstname.lastname@example.org.
For more options, visit https://groups.google.com/d/optout.