condition

package
v1.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const EQ = "eq"
View Source
const GT = "gt"
View Source
const LT = "lt"

Variables

View Source
var OperatorMap = map[string]OperatorFunc{}

Functions

func Equal

func Equal(input, target interface{}) (flag bool, err error)

func Greater

func Greater(input, target interface{}) (flag bool, err error)

func Less

func Less(input, target interface{}) (flag bool, err error)

func RegisterCondition

func RegisterCondition(name string, f OperatorFunc)

Types

type OperatorFunc

type OperatorFunc func(input, target interface{}) (bool, error)

Jump to

Keyboard shortcuts

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