comparator

package
v0.0.0-...-3568c51 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Float

type Float struct {
	// contains filtered or unexported fields
}

Float contains operands for float comparator check

type Integer

type Integer struct {
	// contains filtered or unexported fields
}

Integer contains operands for integer comparator check

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model contains operands and operator for the comparison operations a and b attribute belongs to operands and operator attribute belongs to operator

func FirstValue

func FirstValue(a interface{}) *Model

FirstValue sets the first operands

func RunCount

func RunCount(rc int) *Model

RunCount sets the run counts

func (Model) CompareFloat

func (model Model) CompareFloat() error

CompareFloat compares floating numbers for specific operation it check for the >=, >, <=, <, ==, != operators

func (Model) CompareInt

func (model Model) CompareInt() error

CompareInt compares integer numbers for specific operation it check for the >=, >, <=, <, ==, != operators

func (Model) CompareString

func (model Model) CompareString() error

CompareString compares strings for specific operation it check for the equal, not equal and contains(sub-string) operations

func (*Model) Criteria

func (model *Model) Criteria(criteria string) *Model

Criteria sets the criteria/operator

func (*Model) FirstValue

func (model *Model) FirstValue(a interface{}) *Model

FirstValue sets the first operands

func (*Model) RunCount

func (model *Model) RunCount(rc int) *Model

RunCount sets the run counts

func (*Model) SecondValue

func (model *Model) SecondValue(b interface{}) *Model

SecondValue sets the second operand

type String

type String struct {
	// contains filtered or unexported fields
}

String contains operands for String comparator check

Jump to

Keyboard shortcuts

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