Hacker News new | past | comments | ask | show | jobs | submit login

It's

    typedObj, ok = something.(type)
just like it is with maps, or any other ", ok" thing.

http://play.golang.org/p/I-5kD88knC




Oi vey, mea culpa.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: