Repository navigation
Prefer fmt.Errorf(...) to fmt.Errorf(fmt.Sprintf(...))
#1292
cdignam-segment
started this conversation in
Ideas
Replies: 1 comment
|
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This is a style preference, but instead of writing
fmt.Errorf(fmt.Sprintf("failed to connect to db: %w", err)), a developer can writefmt.Errorf("failed to connect to db: %w", err).All reactions