Re: [go-nuts] golint warning: should replace errors

2017-07-09 Thread Björn Graf
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 wrote: > Hi, > > what does the golint warning: *should replace errors* actually means? > > I've just finish

[go-nuts] golint warning: should replace errors

2017-07-09 Thread Tong Sun
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