MCPcopy
hub / github.com/pingcap/tidb / Exist

Method Exist

pkg/util/set/string_set.go:36–39  ·  view source on GitHub ↗

Exist checks whether `val` exists in `s`.

(val string)

Source from the content-addressed store, hash-verified

34
35// Exist checks whether `val` exists in `s`.
36func (s StringSet) Exist(val string) bool {
37 _, ok := s[val]
38 return ok
39}
40
41// Insert inserts `val` into `s`.
42func (s StringSet) Insert(val string) {

Calls

no outgoing calls