Simplify the return type of (Path).Match by eliminating the redundant bool returned from (Path).Match. The bool indicated whether the path matched, but this is already communicated as a non--nilerror.
Make the return values consistent and easier to interpret. If there is a match, the error is nil and the other fields are populated. If there is no match, error is non-nil and the other fields are nil.
Simplify the return type of (Path).Match by eliminating the redundant
bool
returned from (Path).Match. Thebool
indicated whether the path matched, but this is already communicated as a non--nil
error
.Make the return values consistent and easier to interpret. If there is a match, the
error
isnil
and the other fields are populated. If there is no match,error
is non-nil
and the other fields arenil
.