What is the use of capacity when we can increase length of slice using append function?

前端 未结 0 1474
臣服心动
臣服心动 2021-01-17 02:56

Learning Golang basics here.

Just came across make() function which is used to create slices. But it also takes a parameter for capacity as

相关标签:
回答
  • 消灭零回复
提交回复
热议问题