ipld / edelweiss

Decentralized Protocol Compiler
Other
16 stars 6 forks source link

Make generated code `gofmt` compliant. #39

Open ajnavarro opened 2 years ago

ajnavarro commented 2 years ago

Generated code doesn't pass gofmt.

guseggert commented 2 years ago

Is this worth doing vs. running gofmt after generating code? Getting e.g. the import statement order correct doesn't seem worth doing.

ajnavarro commented 2 years ago

I think it is straightforward enough, it can be done programmatically: https://pkg.go.dev/go/format#Source