type sync.Map
27 uses
sync (current package)
map.go#L38: type Map struct {
map.go#L47: func (m *Map) Load(key any) (value any, ok bool) {
map.go#L52: func (m *Map) Store(key, value any) {
map.go#L57: func (m *Map) Clear() {
map.go#L64: func (m *Map) LoadOrStore(key, value any) (actual any, loaded bool) {
map.go#L70: func (m *Map) LoadAndDelete(key any) (value any, loaded bool) {
map.go#L76: func (m *Map) Delete(key any) {
map.go#L82: func (m *Map) Swap(key, value any) (previous any, loaded bool) {
map.go#L89: func (m *Map) CompareAndSwap(key, old, new any) (swapped bool) {
map.go#L98: func (m *Map) CompareAndDelete(key, old any) (deleted bool) {
map.go#L113: func (m *Map) Range(f func(key, value any) bool) {
crypto/internal/fips140cache
cache.go#L22: m sync.Map
crypto/tls
cache.go#L17: type weakCertCache struct{ sync.Map }
encoding/binary
binary.go#L692: var structSize sync.Map // map[reflect.Type]int
encoding/json
encode.go#L379: var encoderCache sync.Map // map[reflect.Type]encoderFunc
encode.go#L1329: var fieldCache sync.Map // map[reflect.Type]structFields
github.com/refraction-networking/utls
cache.go#L39: sync.Map
internal/godebug
godebug.go#L146: var cache sync.Map // name string -> value *atomic.Pointer[string]
mime
type.go#L16: mimeTypes sync.Map // map[string]string; ".Z" => "application/x-compress"
type.go#L17: mimeTypesLower sync.Map // map[string]string; ".z" => "application/x-compress"
type.go#L22: extensions sync.Map // map[string][]string; slice values are append-only.
reflect
type.go#L1399: var ptrMap sync.Map // map[*rtype]*ptrType
type.go#L1814: var lookupCache sync.Map // map[cacheKey]*rtype
type.go#L1834: m sync.Map
type.go#L2190: m sync.Map
type.go#L2823: var layoutCache sync.Map // map[layoutKey]layoutType
runtime/cgo
handle.go#L148: handles = sync.Map{} // map[Handle]interface{}
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |