Go Time: Golang, Software Engineering cover image

Reflection and meta programming

Go Time: Golang, Software Engineering

CHAPTER

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.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner