Reputation: 118600
I have some code that makes use of reflect.StructOf
, which will presumably land in go1.7. Little did I know, that this wasn't available until only about 2 weeks ago, and only in current master
. How does one create custom structs at runtime prior to this method being added?
Upvotes: 1
Views: 348
Reputation: 2908
There was no way to create a new struct type at runtime prior to the addition of reflect.StructOf.
Upvotes: 4