Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenListTeam/OpenList
/ newEntry
Function
newEntry
pkg/generic_sync/map.go:100–104 ·
view source on GitHub ↗
(i V)
Source
from the content-addressed store, hash-verified
98
}
99
100
func
newEntry[V any](i V) *entry[V] {
101
e := &entry[V]{}
102
e.p.Store(&i)
103
return
e
104
}
105
106
// Load returns the value stored in the map for a key, or nil if no
107
// value is present.
Callers
2
Store
Method · 0.85
LoadOrStore
Method · 0.85
Calls
1
Store
Method · 0.45
Tested by
no test coverage detected