メモメモ type switches

https://golang.org/ref/spec#Type_switches

could be rewritten: