MCPcopy 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
51func Put(key string, value string) error {
52 store.Lock()
53 store.m[key] = value
54 store.Unlock()
55
56 return nil
57}

Callers 2

PutMethod · 0.70
TestPutFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestPutFunction · 0.56