Thanks, something like this, but i need to store type in string or []byte in db, and based on this create new empty struct.
сб, 20 июл. 2019 г., 10:55 Jan Mercl <0xj...@gmail.com>: > On Sat, Jul 20, 2019 at 9:28 AM Vasiliy Tolstov <v.tols...@selfip.ru> > wrote: > > > Hi. I have reflection based question. > > I need to store type of struct passed to func and later based on this > stored type reconstruct empty needed struct. > > Does this possible ? > > Not sure I understood the question: https://play.golang.org/p/5AEn3IsKObo > -- 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/CACaajQsO90D5iDOZEpsgwbPBgEu%3DU8eLpYeg%3D2b2odAcp55f9g%40mail.gmail.com.