sourcegraph/internal/search/codycontext/string_set.go
Julie Tibshirani 6dd737f156
Rename 'keyword' patterntype to 'codyContext' (#59529)
This renames the experimental `keyword` pattern type to `codyContext` to
clarify its use case, and to distinguish it from the  "keyword search" project.
It also updates some internal naming (packages, methods, etc.)
2024-01-12 10:30:43 -08:00

13 lines
210 B
Go

package codycontext
type stringSet map[string]struct{}
func (ss stringSet) Has(element string) bool {
_, ok := ss[element]
return ok
}
func (ss stringSet) Add(element string) {
ss[element] = struct{}{}
}