Documentation ¶ Index ¶ type Item type ItemQueue func (q *ItemQueue) Dequeue() *Item func (q *ItemQueue) Enqueue(t Item) func (q *ItemQueue) Front() *Item func (q *ItemQueue) IsEmpty() bool func (q *ItemQueue) New() *ItemQueue func (q *ItemQueue) Size() int Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Item ¶ type Item interface{} type ItemQueue ¶ type ItemQueue struct { // contains filtered or unexported fields } func (*ItemQueue) Dequeue ¶ func (q *ItemQueue) Dequeue() *Item 出队列 func (*ItemQueue) Enqueue ¶ func (q *ItemQueue) Enqueue(t Item) 如队列 func (*ItemQueue) Front ¶ func (q *ItemQueue) Front() *Item 获取队列的第一个元素,不移除 func (*ItemQueue) IsEmpty ¶ func (q *ItemQueue) IsEmpty() bool 判空 func (*ItemQueue) New ¶ func (q *ItemQueue) New() *ItemQueue 创建队列 func (*ItemQueue) Size ¶ func (q *ItemQueue) Size() int 获取队列的长度 Source Files ¶ View all Source files queue.go Click to show internal directories. Click to hide internal directories.