News for hackers. Stuff that matters.
Re:D as a Better C by burntsushi on Wednesday August 23, 2017 @08:22PM (#15086532)
You can actually dynamically generate struct types at runtime with the `reflect` package.[1] That might work for you. Not that I'm saying this is an ideal solution, I'm just giving you another option to evaluate. :-) (I suspect I'd sooner choose "serialize to a string" if I were in your shoes.)

[1] - https://golang.org/pkg/reflect/#StructOf

There are no comments on this comment yet.