mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 20:31:48 +00:00
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.)
13 lines
210 B
Go
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{}{}
|
|
}
|