gofumpt icon indicating copy to clipboard operation
gofumpt copied to clipboard

add support for align struct tags

Open tomasweigenast opened this issue 2 years ago • 2 comments

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

tomasweigenast avatar Apr 21 '22 19:04 tomasweigenast

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.

mvdan avatar Apr 21 '22 22:04 mvdan

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

PaulFarver avatar Jul 05 '23 07:07 PaulFarver