eddycjy / blog

煎鱼的博客,有点忙,传送门:https://eddycjy.com
3.05k stars 431 forks source link

posts/go/slice/2019-01-06-why-slice-max/ #63

Open utterances-bot opened 4 years ago

utterances-bot commented 4 years ago

Go Slice 最大容量大小是怎么来的

https://eddycjy.com/posts/go/slice/2019-01-06-why-slice-max/

sullfu commented 4 years ago

go 1.12 runtime.makeslice 的源码和文中发生了变化, 返回值也不再是slice,而是unsafe.Pointer

cnbailian commented 4 years ago

typo:最后一行

注:本文 Go 代码基于版本 11.4