A nil does not have type
 A nil interface may have. See http://spf13.com/post/when-nil-is-not-nil/ 

Why don't you use type switch?

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to