allcut.go 329 B

12345678910
  1. package filter
  2. // AllCut is a filter that matches nothing. This is useful
  3. // for applications like authorization, where a user/group/role may be disallowed
  4. // from viewing data entirely.
  5. type AllCut[T any] struct{}
  6. func (ac AllCut[T]) String() string { return "(AllCut)" }
  7. func (ac AllCut[T]) Matches(T) bool { return false }