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

add support for align struct tags #222

Open
tomasweigenast opened this issue Apr 21, 2022 · 2 comments
Open

add support for align struct tags #222

tomasweigenast opened this issue Apr 21, 2022 · 2 comments

Comments

@tomasweigenast
Copy link

It would be nice if this library implements something like this: https://github.com/momaek/formattag

@mvdan
Copy link
Owner

mvdan commented Apr 21, 2022

I'm not opposed to this, but - is this formatting actually widespread among Go projects? I've personally never seen it before. Given that gofupmt is meant to enforce formatting rules, I am reluctant to enforce a rule that few people try to follow already.

@PaulFarver
Copy link

@mvdan this format is enforced in the tagalign linter from https://golangci-lint.run/usage/linters/#tagalign if that is worth considering

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

No branches or pull requests

3 participants