Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(option *Options)
Option is a function type used to set Options
func WithContainer ¶
WithContainer is used to set a Queue's underlying container
func WithGoroutineSafe ¶
func WithGoroutineSafe() Option
WithGoroutineSafe is used to set a Queue goroutine-safe
func WithListContainer ¶
func WithListContainer() Option
WithListContainer is used to set List as a Queue's underlying container
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
Options holds Queue's options
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue is a first-in-first-out data structure
func (*Queue) Front ¶
func (q *Queue) Front() interface{}
Front returns the front value in the queue
func (*Queue) Pop ¶
func (q *Queue) Pop() interface{}
Pop removes the the front element in the queue, and returns its value
Click to show internal directories.
Click to hide internal directories.