- Notifications
You must be signed in to change notification settings - Fork18.4k
Closed
Labels
Milestone
Description
This is a proposal to add functionality to gofmt for formatting/alignment of multiple struct tags. If gofmt could align the tags it would become much more readable and save allot of time from having to do it manually.
example: ( just some tags I use, could be many others )
typeUserstruct {Namestring`json:"name" bson:"name" validate:"required"`LegalNamestring`json:"legalName" bson:"legalName" validate:"required"`Emailstring`json:"email" bson:"email" validate:"required"`....}
after gofmt:
typeUserstruct {Namestring`json:"name" bson:"name" validate:"required"`LegalNamestring`json:"legalName" bson:"legalName" validate:"required"`Emailstring`json:"email" bson:"email" validate:"required"`...}