remyoudompheng / go-misc

Miscellaneous Go toys
Other
133 stars 24 forks source link

Deadcode should not detect "_ is unused" #6

Closed cep21 closed 8 years ago

cep21 commented 8 years ago

It's common in go to validate a type satisifies an interface with something like var _ io.Writer = &MyWriter{}, however deadcode detects this. Deadcode should not message on _ assigned global variables.

cep21 commented 8 years ago

Awesome. Fixed!

cep21 commented 8 years ago

oops not merged :/

tsuna commented 8 years ago

ping, can we get the fix merged?

fsomers commented 8 years ago

+1, would appreciate a release with this fix incorporated, thanks...

tsuna commented 8 years ago

ping?