sync.Map.LoadOrStore (method)
16 uses
sync (current package)
map.go#L227: func (m *Map) LoadOrStore(key, value any) (actual any, loaded bool) {
crypto/tls
cache.go#L91: if entry, loaded := cc.LoadOrStore(string(der), entry); loaded {
encoding/json
encode.go#L357: fi, loaded := encoderCache.LoadOrStore(t, encoderFunc(func(e *encodeState, v reflect.Value, opts encOpts) {
encode.go#L1277: f, _ := fieldCache.LoadOrStore(t, typeFields(t))
internal/godebug
godebug.go#L179: if v, loaded := cache.LoadOrStore(name, s); loaded {
reflect
type.go#L1341: pi, _ := ptrMap.LoadOrStore(t, p)
type.go#L1363: pi, _ := ptrMap.LoadOrStore(t, &pp)
type.go#L1785: ti, _ := lookupCache.LoadOrStore(ckey, toRType(tt))
type.go#L1800: ti, _ := lookupCache.LoadOrStore(ckey, toRType(&ch.Type))
type.go#L1829: ti, _ := lookupCache.LoadOrStore(ckey, toRType(tt))
type.go#L1873: ti, _ := lookupCache.LoadOrStore(ckey, toRType(&mt.Type))
type.go#L2237: ti, _ := lookupCache.LoadOrStore(ckey, toRType(tt))
type.go#L2252: ti, _ := lookupCache.LoadOrStore(ckey, toRType(&slice.Type))
type.go#L2800: ti, _ := lookupCache.LoadOrStore(ckey, toRType(tt))
type.go#L2913: ti, _ := lookupCache.LoadOrStore(ckey, toRType(&array.Type))
type.go#L3012: lti, _ := layoutCache.LoadOrStore(k, layoutType{
 |
The pages are generated with Golds v0.7.6. (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. |