News for hackers. Stuff that matters.
Re:Toward Go 1.3 by 4ad on Wednesday February 12, 2014 @01:42AM (#7222935)
Of course you can, error is an interface, any number of concrete types can satisfy it, and you can use type assertions or type switches to unbox (and use) that concrete type.

This is a widely used idiom in Go.

There are no comments on this comment yet.