Movatterモバイル変換


[0]ホーム

URL:


syncmap

package
v2.23.1Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License:AGPL-3.0Imports:1Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeMap

type Map[K, Vany] struct {// contains filtered or unexported fields}

Map is a type safe sync.Map

funcNew

func New[K, Vany]() *Map[K, V]

func (*Map[K, V])CompareAndDelete

func (m *Map[K, V]) CompareAndDelete(key K, old V) (deletedbool)

func (*Map[K, V])CompareAndSwap

func (m *Map[K, V]) CompareAndSwap(key K, old V, newVal V)bool

func (*Map[K, V])Delete

func (m *Map[K, V]) Delete(key K)

func (*Map[K, V])Load

func (m *Map[K, V]) Load(key K) (value V, okbool)

func (*Map[K, V])LoadAndDelete

func (m *Map[K, V]) LoadAndDelete(key K) (actual V, loadedbool)

func (*Map[K, V])LoadOrStore

func (m *Map[K, V]) LoadOrStore(key K, value V) (actual V, loadedbool)

func (*Map[K, V])Range

func (m *Map[K, V]) Range(f func(key K, value V)bool)

func (*Map[K, V])Store

func (m *Map[K, V]) Store(k K, v V)

func (*Map[K, V])Swap

func (m *Map[K, V]) Swap(key K, value V) (previousany, loadedbool)

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp