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
package main
import"fmt"funcmain() {
err:=fmt.Errorf("ordinary error")
fmt.Printf("%#v\n", err)
}
What did you expect to see?
fmt.Errorf("an ordinary string") - with no formatting arguments - should be replaced by errors.New("an ordinary string"), to avoid the overhead of calling errors.New(Sprintf(...)).
What did you see instead?
No warning.
I'm happy to try to provide a patch here, if this is of interest.