|
|
|
|
|
by Donch
4434 days ago
|
|
It's horrible method with a horrible signature, that I didn't test :-) But the short variable declaration in the type switch does indeed save the casts the OP was complaining about. Even more correct and horrible:
http://play.golang.org/p/ZMQKQhuUQT |
|