Go Time: Golang, Software Engineering cover image

Reflection and meta programming

Go Time: Golang, Software Engineering

00:00

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.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app