From: Sergey Matveev Date: Sun, 13 Jul 2025 07:25:46 +0000 (+0300) Subject: strings.SplitSeq X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=mmc.git strings.SplitSeq --- 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