MCPcopy Create free account
hub / github.com/PacktPublishing/Go-Programming-Cookbook-Second-Edition / Set

Method Set

chapter10/atomic/map.go:22–27  ·  view source on GitHub ↗

Set uses a write lock and sets the value given a key

(key, value string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

TestSafeMap_SetFunction · 0.95
TestSafeMap_GetFunction · 0.95
mainFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestSafeMap_SetFunction · 0.76
TestSafeMap_GetFunction · 0.76