Ahoy, this warning is about errors.New(fmt.Sprintf()) being the same as fmt.Errorf() and so the latter should be used to reduce complexity.
-- bg On Sun, Jul 9, 2017 at 3:32 PM, Tong Sun <suntong...@gmail.com> wrote: > Hi, > > what does the golint warning: *should replace errors* actually means? > > I've just finished my easygen V2 reconstruction: > https://github.com/go-easygen/easygen > > but now golint gives a warning: *should replace errors* for Line 157 > <https://github.com/go-easygen/easygen/blob/master/easygen.go#L157> and Line > 244 <https://github.com/go-easygen/easygen/blob/master/easygen.go#L244> > Ref: https://goreportcard.com/report/github.com/go-easygen/easygen > > How can I make golint happy? Thx. > > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.