Prefer fmt.Errorf(...)
to fmt.Errorf(fmt.Sprintf(...))
#1292
cdignam-segment
started this conversation in
Ideas
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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)
.Beta Was this translation helpful? Give feedback.
All reactions