On Mon, Nov 28, 2022 at 1:44 PM Wojciech Muła <wojtek.m...@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

-- 
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/CAA40n-UB%3DWBsK4FJWDDyaZd1q8Ew7iTC%2ByUFwbGXMROOL_0_dg%40mail.gmail.com.

Reply via email to