2min chapter

Go Time: Golang, Software Engineering cover image

Reflection and meta programming

Go Time: Golang, Software Engineering

CHAPTER

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.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode