Go Time: Golang, Software Engineering cover image

Reflection and meta programming

Go Time: Golang, Software Engineering

00:00

The Importance of Struct Tags in Annotations

The language didn't really grow to have annotations. And as a result, it could have a pretty crazy long struct tag that was thrown on something and it looked kind of wonky because you're like, you know, this isn't really code. It's like this metadata but it's providing a lot more than what it seemed like at first clients. So that's much benefit to the type safety that's makes sense, doesn't it? Yeah. I also even found like when I was doing this, I probably use struct tags more than I should have in that.

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