gitlab.com/evatix-go/core@v1.3.55/enums/stringcompareas/vars.go (about) 1 package stringcompareas 2 3 import ( 4 "gitlab.com/evatix-go/core/coreimpl/enumimpl" 5 ) 6 7 var ( 8 stringRanges = [...]string{ 9 Equal: "Equal", 10 StartsWith: "StartsWith", 11 EndsWith: "EndsWith", 12 Anywhere: "Anywhere", 13 AnyChars: "AnyChars", 14 Contains: "Contains", 15 Regex: "Regex", 16 NotEqual: "NotEqual", 17 NotStartsWith: "NotStartsWith", 18 NotEndsWith: "NotEndsWith", 19 NotContains: "NotContains", 20 NotAnyChars: "NotAnyChars", 21 NotMatchRegex: "NotMatchRegex", 22 Invalid: "Invalid", 23 } 24 25 BasicEnumImpl = enumimpl. 26 New. 27 BasicByte. 28 Default( 29 Equal, 30 stringRanges[:]) 31 32 rangesMap = map[Variant]IsLineCompareFunc{ 33 Equal: isEqualFunc, 34 StartsWith: isStartsWithFunc, 35 EndsWith: isEndsWithFunc, 36 Anywhere: isAnywhereFunc, 37 AnyChars: isAnyCharsFunc, 38 Contains: isAnywhereFunc, // alias for isAnyWhere 39 Regex: isRegexFunc, 40 NotEqual: isNotEqualFunc, 41 NotStartsWith: isNotStartsWithFunc, 42 NotEndsWith: isNotEndsWithFunc, 43 NotContains: isNotContainsFunc, 44 NotAnyChars: isNotAnyCharsFunc, 45 NotMatchRegex: isNotMatchRegex, 46 } 47 48 negativeCases = []Variant{ 49 NotEqual, 50 NotStartsWith, 51 NotEndsWith, 52 NotContains, 53 NotAnyChars, 54 NotMatchRegex, 55 } 56 )