3 ms·
If you're just looking for field names (keys), what's wrong with map[string]interface{}? Maybe I'm missing some key context, but I've never reached for reflect
by oogali 4y ago
If you're just looking for field names (keys), what's wrong with map[string]interface{}?
Maybe I'm missing some key context, but I've never reached for reflection in the scenario you've described.