tools

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ring

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

Ring encapsulate of ring.Ring

func NewRing

func NewRing(capacity int) *Ring

NewRing constructor

func (*Ring) Add

func (r *Ring) Add(p interface{})

Add add element

func (*Ring) Do

func (r *Ring) Do(do func(interface{}) bool)

Do iterate and fileter out processed elements

Jump to

Keyboard shortcuts

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