From 592db203108054dcde517794571f5cb9906bdc8f Mon Sep 17 00:00:00 2001 From: demo Date: Tue, 26 May 2026 15:32:28 -0400 Subject: refactor: use SplitSeq instead of Split --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index db64348..30c9ebf 100644 --- a/main.go +++ b/main.go @@ -133,8 +133,8 @@ func getLeakProfile(leakySnippet func()) { prof.WriteTo(&content, 2) // Ignore non leaked goroutines - leaks := strings.Split(content.String(), "\n\n") - for _, leak := range leaks { + leaks := strings.SplitSeq(content.String(), "\n\n") + for leak := range leaks { if strings.Contains(leak, "(leaked)") { fmt.Println(leak + "\n") } -- cgit v1.2.3