MCPcopy
hub / github.com/minio/minio-go / Add

Method Add

pkg/set/set.go:72–74  ·  view source on GitHub ↗

Add - adds element to the set.

(s T)

Source from the content-addressed store, hash-verified

70
71// Add - adds element to the set.
72func (set Set[T]) Add(s T) {
73 set[s] = struct{}{}
74}
75
76// Remove - removes element from the set. It does nothing if element does not exist in the set.
77func (set Set[T]) Remove(s T) {

Callers 15

GetObjectACLMethod · 0.45
CreateSessionMethod · 0.45
doMakeBucketMethod · 0.45
GetObjectAttributesMethod · 0.45
PutObjectFanOutMethod · 0.45
toQueryValuesMethod · 0.45
testFunctionalFunction · 0.45

Calls

no outgoing calls

Tested by 12

buildRequestFunction · 0.36
TestIntSetAddFunction · 0.36
TestIntSetCopyFunction · 0.36
ExampleFunction · 0.36
ExampleSet_stringSetFunction · 0.36
ExampleCopyFunction · 0.36
ExampleNewFunction · 0.36
TestDoDupSuppressFunction · 0.36
TestQueryEncodeFunction · 0.36