Re: [Xen-devel] [PATCH 07/24] golang/xenlight: define StringList builtin type

2019-11-13 Thread Nick Rosbrook
> Doesn't this method want a pointer receiver? Yes, since I'm allocating a new slice. If I wasn't allocating a new slice, this would be okay since the slice contains a pointer to the underlying array. -NR ___ Xen-devel mailing list Xen-devel@lists.xenp

Re: [Xen-devel] [PATCH 07/24] golang/xenlight: define StringList builtin type

2019-11-13 Thread George Dunlap
On 10/7/19 4:12 PM, Nick Rosbrook wrote: > From: Nick Rosbrook > > Define StringList as []string an implement fromC and toC functions. > > Signed-off-by: Nick Rosbrook > --- > Cc: George Dunlap > Cc: Ian Jackson > Cc: Wei Liu > > tools/golang/xenlight/xenlight.go | 29 +

[Xen-devel] [PATCH 07/24] golang/xenlight: define StringList builtin type

2019-10-07 Thread Nick Rosbrook
From: Nick Rosbrook Define StringList as []string an implement fromC and toC functions. Signed-off-by: Nick Rosbrook --- Cc: George Dunlap Cc: Ian Jackson Cc: Wei Liu tools/golang/xenlight/xenlight.go | 29 + 1 file changed, 29 insertions(+) diff --git a/tools/