structure

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: 0BSD Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue struct {
	// contains filtered or unexported fields
}

func NewQueue

func NewQueue(size int) *Queue

func (*Queue) Clone

func (q *Queue) Clone() *Queue

func (*Queue) Peek

func (q *Queue) Peek() interface{}

func (*Queue) Pop

func (q *Queue) Pop() interface{}

func (*Queue) Push

func (q *Queue) Push(v ...interface{})

type Set

type Set struct {
	// contains filtered or unexported fields
}

无序集合 线程安全

func NewSet

func NewSet() *Set

func (*Set) Add

func (s *Set) Add(key interface{})

func (*Set) Delete

func (s *Set) Delete(key interface{})

func (*Set) IsExist

func (s *Set) IsExist(key interface{}) bool

Jump to

Keyboard shortcuts

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