This PR changes all errors to use pointer receivers, as is common Go idiom.
This doesn't change any behavior. It started as my attempt to fix something I thought was a bug, but I think I misunderstood. I won't feel bad if you decide to close/reject as this doesn't change any behavior and introduces a lot of LoC changes.
Pointer receivers have some benefits for use in error handling -- notably you can compare errors to nil (if err == nil vs if err == MyError{}). The choice is somewhat arbitrary, but using pointers is far more conventional.
This PR changes all errors to use pointer receivers, as is common Go idiom.
This doesn't change any behavior. It started as my attempt to fix something I thought was a bug, but I think I misunderstood. I won't feel bad if you decide to close/reject as this doesn't change any behavior and introduces a lot of LoC changes.
Pointer receivers have some benefits for use in error handling -- notably you can compare errors to nil (
if err == nil
vsif err == MyError{}
). The choice is somewhat arbitrary, but using pointers is far more conventional.