Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schema/gen/go: apply gofmt automatically #163

Merged
merged 1 commit into from
Apr 19, 2021
Merged

schema/gen/go: apply gofmt automatically #163

merged 1 commit into from
Apr 19, 2021

Conversation

mvdan
Copy link
Contributor

@mvdan mvdan commented Apr 9, 2021

(see commit message)

Now that we buffer the output, using go/format is trivial.

This makes the default behavior better, and means not having to use an
extra gofmt go:generate step everywhere.
@mvdan mvdan requested a review from warpfork April 9, 2021 14:53
@mvdan
Copy link
Contributor Author

mvdan commented Apr 9, 2021

This also means no longer having to be extra careful to write the templates to try to produce gofmt-valid output directly. So I imagine we could simplify some of the generation code to stop trying to do that.

@warpfork
Copy link
Collaborator

warpfork commented Apr 9, 2021

Oh. Not even an external command invocation. Nice!

Copy link
Collaborator

@warpfork warpfork left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@warpfork warpfork merged commit 246262e into ipld:master Apr 19, 2021
@mvdan mvdan deleted the gen-go-gofmt branch May 24, 2021 08:51
@aschmahmann aschmahmann mentioned this pull request Aug 23, 2021
62 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants