On Monday, November 28, 2022 at 1:50:21 PM UTC+1 Jan Mercl wrote:
> On Mon, Nov 28, 2022 at 1:44 PM Wojciech Muła <wojte...@gmail.com> wrote: > > > Is there any tool that would point out places with > > an assignment to the blank identifier? > > > > I'd like to spot possible refactoring/debug leftovers, > > like `_ := func() {}` or unused imports. > > > > I went through the staticcheck list of checks, but > > didn't find anything similar. > > $ grep -n '\b_\b :\?= ' *.go > Thanks, but this will catch also things like `foo, _ := bar`, which are perfectly fine. w. -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/0fd84c98-3d0b-4b69-9995-fa89f44b6cdbn%40googlegroups.com.