AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Type Assertions in Go
The type system is provided a very nice like feature for us to do it in a nice way rather than depending on the reflection package or something. So you can say that like, yeah, that's a reflection feature that you know, represented in the language with more syntetic sugar. It does help as well. You can't do invalid kind of type assertions and things. The compiler will help you at some point, but you're right. Of course, it has to be at runtime. That's kind of the point of it.