> For the complete documentation index, see [llms.txt](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.7.md).

# 05.7 Go 语言中的队列

**队列**是一种特殊的链表，它总是在链表头添加新的元素，在链表尾删除元素。我们不必用插图来描述队列。想象一下银行中的情形，你必须等到比你先来的人完成交易之后才能和出纳员交谈。这就是个队列！

队列最大的优点就是简单！你只需要两个函数就能访问一个队列，这意味着你需要担心的事情更少，并且你只用完成这两个函数就能实现一个队列！
