MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / Removing

Method Removing

base/set.go:157–163  ·  view source on GitHub ↗

Returns a set with any instance of 'str' removed

(str string)

Source from the content-addressed store, hash-verified

155
156// Returns a set with any instance of 'str' removed
157func (set Set) Removing(str string) Set {
158 if _, exists := set[str]; exists {
159 set = set.copy()
160 delete(set, str)
161 }
162 return set
163}
164
165// JSON encoding/decoding:
166

Callers 2

SetFromArrayFunction · 0.80
IgnoringStarFunction · 0.80

Calls 1

copyMethod · 0.95

Tested by

no test coverage detected