cond

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type A

type A []interface{}

type Expression

type Expression struct {
	LeftValue  string      `json:"leftValue"`
	Operator   string      `json:"operator"`
	RightValue interface{} `json:"rightValue"`
}

func Contain

func Contain(leftValue string, rightValue interface{}) *Expression

func Empty

func Empty(leftValue string, rightValue interface{}) *Expression

func Eq

func Eq(leftValue string, rightValue interface{}) *Expression

func Gt

func Gt(leftValue string, rightValue interface{}) *Expression

func Gte

func Gte(leftValue string, rightValue interface{}) *Expression

func HasAnyOf

func HasAnyOf(leftValue string, rightValue interface{}) *Expression

func HasNoneOf

func HasNoneOf(leftValue string, rightValue interface{}) *Expression

func In

func In(leftValue string, rightValue interface{}) *Expression

func Lt

func Lt(leftValue string, rightValue interface{}) *Expression

func Lte

func Lte(leftValue string, rightValue interface{}) *Expression

func Neq

func Neq(leftValue string, rightValue interface{}) *Expression

func NewExpression

func NewExpression(leftValue string, operator string, rightValue interface{}) *Expression

func NotContain

func NotContain(leftValue string, rightValue interface{}) *Expression

func NotEmpty

func NotEmpty(leftValue string, rightValue interface{}) *Expression

func NotIn

func NotIn(leftValue string, rightValue interface{}) *Expression

type Logic

type Logic struct {
	Type        string
	Expressions []*Expression
	Logics      []*Logic
}

func NewAndLogic

func NewAndLogic(expressions []*Expression, logics []*Logic) *Logic

func NewOrLogic

func NewOrLogic(expressions []*Expression, logics []*Logic) *Logic

type M

type M map[string]interface{}

func And

func And(exps ...interface{}) M

func Or

func Or(exps ...interface{}) M

Jump to

Keyboard shortcuts

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