mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-05 01:52:46 +00:00
188d28f054
Bumps [github.com/ncruces/go-sqlite3](https://github.com/ncruces/go-sqlite3) from 0.18.3 to 0.18.4. - [Release notes](https://github.com/ncruces/go-sqlite3/releases) - [Commits](https://github.com/ncruces/go-sqlite3/compare/v0.18.3...v0.18.4) --- updated-dependencies: - dependency-name: github.com/ncruces/go-sqlite3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
13 lines
167 B
Go
13 lines
167 B
Go
package util
|
|
|
|
type Set[E comparable] map[E]struct{}
|
|
|
|
func (s Set[E]) Add(v E) {
|
|
s[v] = struct{}{}
|
|
}
|
|
|
|
func (s Set[E]) Contains(v E) bool {
|
|
_, ok := s[v]
|
|
return ok
|
|
}
|