Golint doesn't like using fmt.Sprintf inside errors.New, and while many of those errors.New might be from gone instead of native, there wouldn't be any significant advantage to using gone errors if they are being constructed based on the output of fmt.Sprintf anyway, so may as well just use fmt.Errorf like it wants.
Golint doesn't like using
fmt.Sprintf
insideerrors.New
, and while many of thoseerrors.New
might be from gone instead of native, there wouldn't be any significant advantage to using gone errors if they are being constructed based on the output offmt.Sprintf
anyway, so may as well just usefmt.Errorf
like it wants.