From b3431465143efe5c4fd4f762a6e8288e6522c85d Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sun, 13 Jul 2025 10:25:46 +0300 Subject: [PATCH] strings.SplitSeq --- cmd/mmc/post.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/mmc/post.go b/cmd/mmc/post.go index 660618f..e3be752 100644 --- a/cmd/mmc/post.go +++ b/cmd/mmc/post.go @@ -134,7 +134,7 @@ func makePost(c *model.Client4, chId, text string) (*model.Post, error) { } post := &model.Post{ChannelId: chId} var lines []string - for _, line := range strings.Split(text, "\n") { + for line := range strings.SplitSeq(text, "\n") { if !strings.HasPrefix(line, CmdFile) { lines = append(lines, line) continue -- 2.50.0