In golanglint_ci, there's a 'unused' linter, which will detect unused const vars too.
Op vrijdag 3 mei 2024 om 00:18:02 UTC+2 schreef Ian Lance Taylor: > On Thu, May 2, 2024 at 2:48 PM will....@gmail.com <will....@gmail.com> > wrote: > > > > Was this always the case? Is this a bug? Seems like it should be a > compiler error, like unused local variables. > > Yes, it's always been the case. It would probably be painful to change it > now. > > Ian > -- 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/90684dd6-7d05-4a61-8209-1b0f9fcc828an%40googlegroups.com.