Documentation ¶
Index ¶
- type Iterator
- type Query
- func (q *Query[T]) Any() bool
- func (q *Query[T]) Collect() []T
- func (q *Query[T]) Count() int
- func (q *Query[T]) Filter(filter func(item T) bool) *Query[T]
- func (q *Query[T]) First() T
- func (q *Query[T]) FirstOrDefault() (val T, ok bool)
- func (q *Query[T]) Last() T
- func (q *Query[T]) LastOrDefault() (val T, ok bool)
- func (q *Query[T]) Limit(count int) *Query[T]
- func (q *Query[T]) OrderBy(less func(a, b T) bool) *Query[T]
- func (r *Query[T]) Reverse() *Query[T]
- func (q *Query[T]) Skip(count int) *Query[T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Query ¶
type Query[T any] struct { // contains filtered or unexported fields }
func (*Query[T]) FirstOrDefault ¶
func (*Query[T]) LastOrDefault ¶
Click to show internal directories.
Click to hide internal directories.