-
-
Notifications
You must be signed in to change notification settings - Fork 405
Closed
Labels
Description
QF1012 flags
b := new(bytes.Buffer)
b.WriteString(fmt.Sprint(...))
but it doesn't flag
var b bytes.Buffer
b.WriteString(fmt.Sprint(...))
because in the second example, b does not implement io.StringWriter, and fmt.Sprintf(b, ...) would not compile. We should detect this and use &b.
Reactions are currently unavailable