Recently, I gofmt'ed a block of code in a file and this is what I ended up with:
embed := &discordgo.MessageEmbed{
Color: MembershipEmbedColor,
Description: "This collection is empty.\n" +
"Send an image or image URL to get started.",
Footer: &discordgo.MessageEmbedFooter{Text: "Membership"},
}
I would suggest that it would be more readable to format it thus:
embed := &discordgo.MessageEmbed{
Color: MembershipEmbedColor,
Description: "This collection is empty.\n" +
"Send an image or image URL to get started.",
Footer: &discordgo.MessageEmbedFooter{Text: "Membership"},
}
This would follow the style of formatting that gofmt uses for struct definitions. Aligning the second line of the continued string would be a special case; I personally haven't seen gofmt do that anywhere else, yet.
I hope this is the right place to file suggestions for gofmt. If not, please send me in the right direction.
Thanks,
Eric