rwmap

package
v0.0.0-...-eb36113 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RWMap

type RWMap struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewRWMap

func NewRWMap(n int) *RWMap

func (*RWMap) Delete

func (m *RWMap) Delete(k int)

func (*RWMap) Each

func (m *RWMap) Each(f func(k, v int) bool)

func (*RWMap) Get

func (m *RWMap) Get(k int) (int, bool)

func (*RWMap) Len

func (m *RWMap) Len() int

func (*RWMap) Set

func (m *RWMap) Set(k int, v int)

Jump to

Keyboard shortcuts

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