# 08 切片(Slice)

- [创建切片](https://denglj.gitbook.io/essential-go/08-slices/chuang-jian-qie-pian.md)
- [长度与容量](https://denglj.gitbook.io/essential-go/08-slices/chang-du-yu-rong-liang.md)
- [追加元素](https://denglj.gitbook.io/essential-go/08-slices/zhui-jia-yuan-su.md)
- [切片过滤](https://denglj.gitbook.io/essential-go/08-slices/qie-pian-guo-lv.md)
- [从切片删除元素](https://denglj.gitbook.io/essential-go/08-slices/cong-qie-pian-shan-chu-yuan-su.md)
- [复制切片](https://denglj.gitbook.io/essential-go/08-slices/fu-zhi-qie-pian.md)
- [零值切片](https://denglj.gitbook.io/essential-go/08-slices/ling-zhi-qie-pian.md)
- [切片的技巧](https://denglj.gitbook.io/essential-go/08-slices/qie-pian-de-ji-qiao.md)
- [通过预分配内存优化切片](https://denglj.gitbook.io/essential-go/08-slices/tong-guo-yu-fen-pei-nei-cun-you-hua-qie-pian.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://denglj.gitbook.io/essential-go/08-slices.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
