style: run gofmt across entire codebase

330 non-vendor files had minor formatting inconsistencies
(comment alignment, whitespace). No logic changes.
This commit is contained in:
Houmgaor
2026-02-23 21:28:30 +01:00
parent 385b974adc
commit 48639942f6
330 changed files with 1841 additions and 1809 deletions

View File

@@ -124,6 +124,7 @@ func (bot *DiscordBot) RealtimeChannelSend(message string) (err error) {
return
}
// ReplaceTextAll replaces every match of regex in text by calling handler with
// the first capture group of each match and substituting the result.
func ReplaceTextAll(text string, regex *regexp.Regexp, handler func(input string) string) string {

View File

@@ -229,8 +229,8 @@ func TestNormalizeDiscordMessage_Integration(t *testing.T) {
contains: []string{"Hello", ":smile:"},
},
{
name: "mixed content",
input: "<@123456789012345678> sent :wave:",
name: "mixed content",
input: "<@123456789012345678> sent :wave:",
contains: []string{"sent"},
},
}