[go-nuts] Re: go vet configuration? to check variant of printf having to do with verbs

2022-07-26 Thread Brian Candler
Instead of a closure, could you put loopCnt and errCnt in a struct, and then make your loopErrMsg be a method on that? On Tuesday, 26 July 2022 at 16:03:01 UTC+1 gocss wrote: > also found this so it is a known limitation: > https://github.com/golang/go/issues/44350 > > On Tuesday, July 26, 2022

[go-nuts] Re: go vet configuration? to check variant of printf having to do with verbs

2022-07-26 Thread gocss
also found this so it is a known limitation: https://github.com/golang/go/issues/44350 On Tuesday, July 26, 2022 at 10:39:06 AM UTC-4 gocss wrote: > Appears 'go vet -printf.funcs loopErrMsgf' > does not detect incorrect verbs or lack thereof on anonymous functions ... > :( > as shown above,

[go-nuts] Re: go vet configuration? to check variant of printf having to do with verbs

2022-07-26 Thread gocss
Appears 'go vet -printf.funcs loopErrMsgf' does not detect incorrect verbs or lack thereof on anonymous functions ... :( as shown above, which is my desired use case. On Tuesday, July 26, 2022 at 10:02:19 AM UTC-4 gocss wrote: > Is there a way to configure 'go vet' to a variant of