part

package
v0.27.4 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy added in v0.24.3

func Copy[T comparable, S any](s map[T]S) map[T]S

Types

type Map

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

func (*Map) ClearAll added in v0.26.5

func (t *Map) ClearAll()

func (*Map) Copy added in v0.24.2

func (t *Map) Copy() (m Map)

func (*Map) Delete

func (t *Map) Delete(k any)

func (*Map) Len

func (t *Map) Len() int

func (*Map) Load

func (t *Map) Load(k any) (any, bool)

func (*Map) LoadV

func (t *Map) LoadV(k any) (v any)

func (*Map) Range

func (t *Map) Range(f func(key, value any) bool)

func (*Map) Store

func (t *Map) Store(k, v any)

type RWMutex added in v0.26.3

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

func (*RWMutex) Lock added in v0.26.3

func (m *RWMutex) Lock(to ...time.Duration) (lockf func() (unlockf func()))

Lock() 必须在 lock期间操作的变量所定义的goroutime 中调用

func (*RWMutex) RLock added in v0.26.3

func (m *RWMutex) RLock(to ...time.Duration) (lockf func() (unlockf func()))

RLock() 必须在 lock期间操作的变量所定义的goroutime 中调用

Jump to

Keyboard shortcuts

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