摘要: 0. 前言 slice 是一种基于数组实现的轻量级数据结构,在slice.go中定义如下: type slice struct { array unsafe.Pointer len int cap int } 从定义中可以看到,slice是一种结构体类型,里面有3个元素。array是数组指针,它指向 阅读全文
posted @ 2020-06-08 23:18 kkbill 阅读(312) 评论(0) 推荐(0) 编辑