Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloud-native-go/examples
/ Put
Function
Put
ch08/grpc/keyvalue_server/core.go:51–57 ·
view source on GitHub ↗
(key string, value string)
Source
from the content-addressed store, hash-verified
49
}
50
51
func
Put(key string, value string) error {
52
store.Lock()
53
store.m[key] = value
54
store.Unlock()
55
56
return
nil
57
}
Callers
2
Put
Method · 0.70
TestPut
Function · 0.70
Calls
no outgoing calls
Tested by
1
TestPut
Function · 0.56