-
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): use static types for built-in matchers
Define EachLike, Like, Term matchers as structs instead of using generic Matcher and provide respective overrides for GetValue method to replace the switch with polymorphism and create a more expressive type system BREAKING CHANGE: The return type of Match func as well as the return type of various matcher constructors such as `Decimal`, `Date`, `IPAddress`, etc. has changed from Matcher struct to StringMatcher interface
- Loading branch information
Alex Tsibulya
committed
Nov 28, 2018
1 parent
6ec2571
commit 633eb1f
Showing
2 changed files
with
75 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters