diff options
| author | demo <demo@antix1> | 2026-05-26 15:32:28 -0400 |
|---|---|---|
| committer | demo <demo@antix1> | 2026-05-26 15:32:28 -0400 |
| commit | 592db203108054dcde517794571f5cb9906bdc8f (patch) | |
| tree | 7adeb41b4509c08b540d6b2ae57e254f93641e31 | |
| parent | ec38d615c488c73b892ff19c868d38a3c646d22b (diff) | |
refactor: use SplitSeq instead of Split
| -rw-r--r-- | main.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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") } |
