Matt Joiner
Matt Joiner

Reputation: 118600

What alternative to reflect.StructOf exists, prior to its addition to in 633ab74?

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

Answers (1)

Jesse
Jesse

Reputation: 2908

There was no way to create a new struct type at runtime prior to the addition of reflect.StructOf.

Upvotes: 4

Related Questions