Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InRangeRegex = regexp.MustCompile(`^([-|\+]?\d+(?:\.\d+)?[A-Za-z]*)-([-|\+]?\d+(?:\.\d+)?[A-Za-z]*)$`) NotInRangeRegex = regexp.MustCompile(`^([-|\+]?\d+(?:\.\d+)?[A-Za-z]*)!-([-|\+]?\d+(?:\.\d+)?[A-Za-z]*)$`) )
Functions ¶
This section is empty.
Types ¶
type Operator ¶
type Operator string
Operator is string alias that represents selection operators enum
const ( // Equal stands for == Equal Operator = "" // MoreEqual stands for >= MoreEqual Operator = ">=" // LessEqual stands for <= LessEqual Operator = "<=" // NotEqual stands for ! NotEqual Operator = "!" // More stands for > More Operator = ">" // Less stands for < Less Operator = "<" // InRange stands for - InRange Operator = "-" // NotInRange stands for !- NotInRange Operator = "!-" )
func GetOperatorFromStringPattern ¶
GetOperatorFromStringPattern parses opeartor from pattern
Click to show internal directories.
Click to hide internal directories.