Like
    bar = int(foo.(MyInt))
that's: type-assert that foo is a MyInt and convert the MyInt to int.

V. 

Am Dienstag, 20. Dezember 2016 09:45:33 UTC+1 schrieb so.q...@gmail.com:
>
> How would I cast type alias MyInt and interface Foo, to an int?
>
> https://play.golang.org/p/Sb80WoKh4Y
>

-- 
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 golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to