MCPcopy
hub / github.com/dropbox/godropbox / Set

Method Set

lockstore/map.go:64–64  ·  view source on GitHub ↗

Set will add the value to the map if it does not exist and will overwrite the value in the map if it does exist.

(string, interface{})

Source from the content-addressed store, hash-verified

62 // Set will add the value to the map if it does not exist and will overwrite
63 // the value in the map if it does exist.
64 Set(string, interface{})
65
66 // Delete removes the key from the map if it exists.
67 Delete(string)

Callers 2

TestGetSetAddMethod · 0.95
TestAddOrGetHoldsLockMethod · 0.95

Implementers 2

lockingMapcontainer/concurrent/lockstore/map.go
lockingMaplockstore/map.go

Calls

no outgoing calls

Tested by 2

TestGetSetAddMethod · 0.76
TestAddOrGetHoldsLockMethod · 0.76