Re: [PATCH v1 7/9] qapi: golang: Generate qapi's command types in Go

2023-10-14 Thread Victor Toso
Hi, On Thu, Sep 28, 2023 at 03:32:54PM +0100, Daniel P. Berrangé wrote: > On Wed, Sep 27, 2023 at 01:25:42PM +0200, Victor Toso wrote: > > This patch handles QAPI command types and generates data structures in > > Go that decodes from QMP JSON Object to Go data structure and vice > > versa. > > >

Re: [PATCH v1 7/9] qapi: golang: Generate qapi's command types in Go

2023-09-29 Thread Victor Toso
Hi, On Thu, Sep 28, 2023 at 03:32:54PM +0100, Daniel P. Berrangé wrote: > On Wed, Sep 27, 2023 at 01:25:42PM +0200, Victor Toso wrote: > > This patch handles QAPI command types and generates data structures in > > Go that decodes from QMP JSON Object to Go data structure and vice > > versa. > > >

Re: [PATCH v1 7/9] qapi: golang: Generate qapi's command types in Go

2023-09-28 Thread Daniel P . Berrangé
On Wed, Sep 27, 2023 at 01:25:42PM +0200, Victor Toso wrote: > This patch handles QAPI command types and generates data structures in > Go that decodes from QMP JSON Object to Go data structure and vice > versa. > > Similar to Event, this patch adds a Command interface and two helper > functions M

[PATCH v1 7/9] qapi: golang: Generate qapi's command types in Go

2023-09-27 Thread Victor Toso
This patch handles QAPI command types and generates data structures in Go that decodes from QMP JSON Object to Go data structure and vice versa. Similar to Event, this patch adds a Command interface and two helper functions MarshalCommand and UnmarshalCommand. Example: qapi: | { 'command': 'set_