You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This does some basic error-related housekeeping to simplify all
print-related formatting as follows:
- Use the error directly as opposed to unnecessarily manually invoking
the Error method
- Avoid unneeded formatting directives when the output only consists of
the error itself
- Use const strings when matching on fixed error strings
- Wrap errors when using fmt.Errorf
0 commit comments