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

2023-09-29 Thread Daniel P . Berrangé
On Fri, Sep 29, 2023 at 03:29:34PM +0200, Victor Toso wrote: > Hi, > > On Thu, Sep 28, 2023 at 03:06:23PM +0100, Daniel P. Berrangé wrote: > > On Wed, Sep 27, 2023 at 01:25:38PM +0200, Victor Toso wrote: > > > This patch handles QAPI struct types and generates the equivalent > > > types in Go. The

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

2023-09-29 Thread Victor Toso
Hi, On Thu, Sep 28, 2023 at 03:06:23PM +0100, Daniel P. Berrangé wrote: > On Wed, Sep 27, 2023 at 01:25:38PM +0200, Victor Toso wrote: > > This patch handles QAPI struct types and generates the equivalent > > types in Go. The following patch adds extra logic when a member of the > > struct has a T

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

2023-09-28 Thread Daniel P . Berrangé
On Wed, Sep 27, 2023 at 01:25:38PM +0200, Victor Toso wrote: > This patch handles QAPI struct types and generates the equivalent > types in Go. The following patch adds extra logic when a member of the > struct has a Type that can take JSON Null value (e.g: StrOrNull in > QEMU) > > The highlights

[PATCH v1 3/9] qapi: golang: Generate qapi's struct types in Go

2023-09-27 Thread Victor Toso
This patch handles QAPI struct types and generates the equivalent types in Go. The following patch adds extra logic when a member of the struct has a Type that can take JSON Null value (e.g: StrOrNull in QEMU) The highlights of this implementation are: 1. Generating an Go struct that requires a @