Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Monibuca/engine
/ Add
Method
Add
util/map.go:12–15 ·
view source on GitHub ↗
(k K, v V)
Source
from the content-addressed store, hash-verified
10
}
11
12
func
(m *Map[K, V]) Add(k K, v V) bool {
13
_, loaded := m.LoadOrStore(k, v)
14
return
!loaded
15
}
16
17
func
(m *Map[K, V]) Set(k K, v V) {
18
m.Store(k, v)
Callers
2
NewAVRingReader
Function · 0.45
Dispose
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected