Documentation ¶
Index ¶
- func FilterList(in_objects interface{}, filters Filters, functions FilterFunctions, ...) (interface{}, error)
- func FilterListItem(item interface{}, filters Filters, functions FilterFunctions, prefilled bool, ...) (remove bool, err error)
- type FilterFunction
- type FilterFunctions
- type FilterItem
- type Filters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterList ¶
func FilterList( in_objects interface{}, filters Filters, functions FilterFunctions, prefilled bool, eqcheckfunc set2.EQCheckFunc, ) ( interface{}, error, )
Filters subject date passed by in_objects, with filter set passed by filters. functions should contain functions asked by filters.
func FilterListItem ¶
Types ¶
type FilterFunction ¶
type FilterFunctions ¶
type FilterFunctions map[string]FilterFunction
type FilterItem ¶
type FilterItem struct { // if [function result]+[NotFunc] == true. // if Add == true, then value which is chacked by this filter item, // considered to be added to result, // else, if Add == false, - item should be removed from result Add bool // apply boolean not to function result NotFunc bool // name of function, which FilterList have to use Func string // some functioning data, to be passed to function FuncParam string }
structure for one of items of filter text parse result
type Filters ¶
type Filters []*FilterItem
func ParseFilterText ¶
func ParseFilterTextLines ¶
func ParseFilterTextMust ¶
Click to show internal directories.
Click to hide internal directories.