tools

package
v0.0.0-...-2e4c1a8 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 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