Open Higan opened 4 years ago
At the moment you have to use "gen.StructPtr" instead of "gen.Struct" to generate pointers of structs rather than the struct itself.
I'm not sure if it would be a good idea to change the behavior of "gen.Struct" depending on the type you put in.
Hi,
I got an error when trying to generating a slice of pointers using the code below:
The error was:
I think
reflect.TypeOf(&Empty{})
returns*main.Empty
instead ofmain.Empty
, but according to the error messages, the generated type is[]main.Empty
; so I just wonder whether there's something wrong with my code here.