Go Time: Golang, Software Engineering cover image

Reflection and meta programming

Go Time: Golang, Software Engineering

00:00

How to Write a JSON Package That Doesn't Use Reflect

I wrote a little, it's not finished. It's basically a fake JSON data generator. So you pass in any data. I decode into structs most of the time. Well, if you're writing anything where you don't know the data structure, some APIs do do that. And so in that sort of case, yeah, we would want people to be able to pass in any kind of API hosted on a website,. including an array of objects as well as a single object. That was the idea.

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