Package patrun is a fast pattern matcher on Go map properties
For a full guide visit https://github.com/colmharte/patrun-java
Need to pick out an object based on a subset of its properties? Say you've got:
{ x: 1 } -> A
{ x: 1, y: 1 } -> B
{ x: 1, y: 2 } -> C
Then patrun can give you the following results:
{ x: 1 } -> A
{ x: 2 } -> no match
{ x: 1, y: 1 } -> B
{ x: 1, y: 2 } -> C
{ x: 2, y: 2 } -> no match
{ y: 1 } -> no match
It's basically _query-by-example_ for property sets.
Patrun() -
Constructor for class com.nearform.patrun.Patrun
A simple interface to that can be passed ionto the toString method of patrun to allow data objects to be ciustom formatted when being generated into a String