run gofmt on generated code if available#1457
Conversation
Signed-off-by: Joel Dice <[email protected]>
alexcrichton
left a comment
There was a problem hiding this comment.
Mind making this a configurable option as well? Effectively aligning with Rust's --format option for wit-bindgen rust
Sure. It looks like formatting is disabled by default for Rust. Any particular reason for that vs. enabling it by default and providing a |
|
I personally prefer "positive" options along the lines of Clap supports |
Makes sense, but am I correct that it's off-by-default for Rust? Should we turn it on by default there to match what I'll be doing for Go? |
|
You're right yeah it's off-by-default, but for now I think it's ok for different generators to differ on defaults. I think it's fine to leave it disabled-by-default in Rust since generated code is handled differently than the Go side of things. |
Signed-off-by: Joel Dice <[email protected]>
No description provided.