Re: [Xen-devel] [PATCH] golang/xenlight: implement constructor generation

2020-01-29 Thread Nick Rosbrook
George, Note that without your patch "golang/xenlight: Don't try to marshall zero-length arrays in fromC", some of these constructors will panic. Thanks, -NR On Wed, Jan 29, 2020 at 7:09 PM Nick Rosbrook wrote: > > Generate constructors for generated Go types. Call libxl__init so > the Go type

[Xen-devel] [PATCH] golang/xenlight: implement constructor generation

2020-01-29 Thread Nick Rosbrook
Generate constructors for generated Go types. Call libxl__init so the Go type can be properly initialized. If a type has a keyed union field, add a parameter to the function signature to set the key variable, and call the init function for the keyed union. Signed-off-by: Nick Rosbrook --- tools