package
3.8.5+incompatible
Repository: https://github.com/kerenbenzion/provision.git
Documentation: pkg.go.dev
# Functions
All returns a filter that returns an index tha contains items that pass all the filters.
Any returns a filter that returns an index that contains items that pass any of the filters.
No description provided by the author
No description provided by the author
No description provided by the author
Eq returns a filter that will keep all the items that are equal to the current comparators.
No description provided by the author
Gt returns a filter that will keep all the items that are greater-than the current comparators.
Gte returns a filter that will keep all the items that are greater than or equal to the current comparators.
Limit returns a filter that returns the first n items.
Lt returns a filter that will keep all items that are less than the current comparators.
Lte returns a filter that will keep all the items that are less than or equal to the current comparators.
Make takes a Less function, a TestMaker function, and a Filler function and returns a Maker.
No description provided by the author
No description provided by the author
Native returns a filter that will sort an Index based on key order.
Ne returns a filter that will keep all the items that are not equal to the current comparators.
New returns a new Index that is populated with a copy of the passed-in objs.
Offset returns a filter that returns all but the first n items.
Resort sorts the index with the same function passed in to the most recent Sort filter.
Reverse returns a filter that will reverse an index.
Select returns a filter that picks all items that match the passed Test.
No description provided by the author
Subset returns a filter that will sort an index based on the lower bound test and the upper bound tests, which correspond to the gte and gt functions that SetComparators takes.
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
Filler takes a value from a query parameter and plugs it into the appropriate slot in the proper model for an index.
Filter is a function that takes an index, does stuff with it, and returns another index.
Less is a function that tests to see if the first item is less than the second item.
Tester is a function that tests to see if an item matches a condition.
TestMaker is a function that takes a reference object and spits out appropriate Tests for gte and gt, in that order.