切片是数组段的描述符。它由指向数组的指针、段的长度及其容量(段的最大长度)组成。

type slice struct {
	array unsafe.Pointer
	len   int
	cap   int
}