gjson
gjson copied to clipboard
Add Result.Equal(r Result, bool caseSensitive) bool
I have a need for an Equal comparison for Results. Now I am simulating it with ! r1.Less(r2) && !r2.Less(r1) but that does not seem very performant. The == operator cannot be used on Result, it gives: invalid operation: r1 == r2 (struct containing []int cannot be compared). I'm willing to provide a PR for this if you think the Equal method for Result is acceptable.