concurrent

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

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

Map concurrent string to interface map

func (*Map) Count

func (m *Map) Count() int

Count return number of map items

func (*Map) Data

func (m *Map) Data() map[string]interface{}

Data return direct pointer to map

func (*Map) Get

func (m *Map) Get(k string) interface{}

Get gets map value for given key. return nil if not found

func (*Map) Has

func (m *Map) Has(k string) bool

Has check if map has key

func (*Map) Init

func (m *Map) Init()

Init initializes a new map

func (*Map) Keys

func (m *Map) Keys() []string

Keys return sorted map keys

func (*Map) Set

func (m *Map) Set(k string, v interface{})

Set sets the map value for given key

Jump to

Keyboard shortcuts

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