filter

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataErrorFormat = "[%s] %s : %s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Key   string      `json:"key"`
	Value interface{} `json:"value"`
}

func UseFilter

func UseFilter(filter interface{}) (*Filter, *er.WdbError)

func (Filter) Filter

func (f Filter) Filter(data map[model.Identifier]*model.Datum) map[model.Identifier]*model.Datum

func (Filter) Iterate

func (f Filter) Iterate(data map[model.Identifier]*model.Datum, iterator func(model.Identifier, model.Datum))

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL