Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: