Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Make generated code gofmt compliant. #39

Open
ajnavarro opened this issue May 23, 2022 · 2 comments
Open

Make generated code gofmt compliant. #39

ajnavarro opened this issue May 23, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@ajnavarro
Copy link
Member

Generated code doesn't pass gofmt.

@ajnavarro ajnavarro added the bug Something isn't working label May 23, 2022
@guseggert
Copy link
Contributor

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

@ajnavarro
Copy link
Member Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants