Documentation ¶ Index ¶ func Where[T1 any](vs []T1, condition func(T1) bool) []T1 type Query func From[T any](vs []T) Query[T] func (q Query[T]) Count() int func (q Query[T]) First() T func (q Query[T]) ForEach(f func(index int, data T) T) Query[T] func (q Query[T]) Last() T func (q Query[T]) Second() T func (q Query[T]) ToArray() []T func (q Query[T]) Where(condition func(T) bool) Query[T] Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Where ¶ func Where[T1 any](vs []T1, condition func(T1) bool) []T1 Types ¶ type Query ¶ type Query[T any] struct { // contains filtered or unexported fields } func From ¶ func From[T any](vs []T) Query[T] func (Query[T]) Count ¶ func (q Query[T]) Count() int func (Query[T]) First ¶ func (q Query[T]) First() T func (Query[T]) ForEach ¶ func (q Query[T]) ForEach(f func(index int, data T) T) Query[T] func (Query[T]) Last ¶ func (q Query[T]) Last() T func (Query[T]) Second ¶ func (q Query[T]) Second() T func (Query[T]) ToArray ¶ func (q Query[T]) ToArray() []T func (Query[T]) Where ¶ func (q Query[T]) Where(condition func(T) bool) Query[T] Source Files ¶ View all Source files def.go foreach.go from.go fst.go toArray.go where.go Click to show internal directories. Click to hide internal directories.