Finally functional
This commit is contained in:
parent
be8936a665
commit
b673c640e4
12 changed files with 261 additions and 113 deletions
|
@ -8,7 +8,7 @@ import (
|
|||
)
|
||||
|
||||
/* Unmarshals a JSON into a recursive map. Returns nil on error */
|
||||
func unmarshalJSON(marshaledJSON []byte) (unmarshaled any) {
|
||||
func UnmarshalJSON(marshaledJSON []byte) (unmarshaled any) {
|
||||
json.Unmarshal(marshaledJSON, &unmarshaled);
|
||||
return;
|
||||
}
|
||||
|
@ -55,6 +55,6 @@ func match(request any, filter any) bool {
|
|||
return true;
|
||||
|
||||
// Otherwise compare the objects directly using reflect
|
||||
default: return reflect.DeepEqual(request, filter)
|
||||
default: return reflect.DeepEqual(request, filter);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue