Re: [Libguestfs] [libnbd PATCH] golang: Optionally use gofmt on generated .go files

2023-08-07 Thread Richard W.M. Jones
On Mon, Aug 07, 2023 at 04:11:15PM -0500, Eric Blake wrote: > On Fri, Aug 04, 2023 at 09:29:48AM -0500, Eric Blake wrote: > > Combine my recent work on improving the generated Go output with > > Tage's work on using a canonical formatter for Rust. If gofmt is > > available during the build, then t

Re: [Libguestfs] [libnbd PATCH] golang: Optionally use gofmt on generated .go files

2023-08-07 Thread Eric Blake
On Fri, Aug 04, 2023 at 09:29:48AM -0500, Eric Blake wrote: > Combine my recent work on improving the generated Go output with > Tage's work on using a canonical formatter for Rust. If gofmt is > available during the build, then the generated .go files will now use > TAB indents and have proper co

[Libguestfs] [libnbd PATCH] golang: Optionally use gofmt on generated .go files

2023-08-04 Thread Eric Blake
Combine my recent work on improving the generated Go output with Tage's work on using a canonical formatter for Rust. If gofmt is available during the build, then the generated .go files will now use TAB indents and have proper columnar alignment; if it is not available, the project still compiles