I have a two level general-purpose data structure: a struct containing one 
or more slices of structs.
I want to be able to use reflection to populate this, but as a first step I 
want to extract the 
"table names" (i.e., the names of the fields of the outer struct), and the 
"field names" (the names of each field in each of the inner structs).
Below is as far as I've got: it correctly finds the table names (including 
their tag alternatives), but I can't work out how to access the field 
names...

playground <https://go.dev/play/p/lAxfwwD9x83>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/c1f828b3-119d-4f78-bd4a-1d0be71d9c1an%40googlegroups.com.

Reply via email to