Detect all declared interfaces
Detect all declared interfaces

Not just variables can have types. A type switch with no variable can
declare inline interfaces in the case branches.

Closes gh-8

dominikh/go-tools,dominikh/go-tools,dominikh/go-tools,dominikh/go-tools