Re: [PATCH v2 10/11] qapi: golang: Add CommandResult type to Go

2023-11-10 Thread Andrea Bolognani
On Thu, Nov 09, 2023 at 08:31:01PM +0100, Victor Toso wrote: > On Thu, Nov 09, 2023 at 10:24:20AM -0800, Andrea Bolognani wrote: > > On Mon, Oct 16, 2023 at 05:27:03PM +0200, Victor Toso wrote: > > > Example: > > > qapi: > > > | { 'command': 'query-sev', 'returns': 'SevInfo', > > > | 'if'

Re: [PATCH v2 10/11] qapi: golang: Add CommandResult type to Go

2023-11-09 Thread Victor Toso
Hi, On Thu, Nov 09, 2023 at 10:24:20AM -0800, Andrea Bolognani wrote: > On Mon, Oct 16, 2023 at 05:27:03PM +0200, Victor Toso wrote: > > This patch adds a struct type in Go that will handle return values > > for QAPI's command types. > > > > The return value of a Command is, encouraged to be, QAPI

Re: [PATCH v2 10/11] qapi: golang: Add CommandResult type to Go

2023-11-09 Thread Andrea Bolognani
On Mon, Oct 16, 2023 at 05:27:03PM +0200, Victor Toso wrote: > This patch adds a struct type in Go that will handle return values > for QAPI's command types. > > The return value of a Command is, encouraged to be, QAPI's complex > types or an Array of those. > > Every Command has a underlying Comma