Help us shape the future of Go! Take the 2026 Go Developer Survey

queue

package
v1.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CirQueue

type CirQueue[T any] struct {
	// contains filtered or unexported fields
}

CirQueue 环形队列,不支持并发安全,应该由调用者控制并发安全

func NewCirQueue

func NewCirQueue[T any](size uint8) *CirQueue[T]

func (*CirQueue[T]) IsFull

func (c *CirQueue[T]) IsFull() bool

func (*CirQueue[T]) Push

func (c *CirQueue[T]) Push(t T)

func (*CirQueue[T]) Range

func (c *CirQueue[T]) Range() []T

func (*CirQueue[T]) Size

func (c *CirQueue[T]) Size() uint8

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL