summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authordemo <demo@antix1>2026-05-26 15:32:28 -0400
committerdemo <demo@antix1>2026-05-26 15:32:28 -0400
commit592db203108054dcde517794571f5cb9906bdc8f (patch)
tree7adeb41b4509c08b540d6b2ae57e254f93641e31 /main.go
parentec38d615c488c73b892ff19c868d38a3c646d22b (diff)
refactor: use SplitSeq instead of Split
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
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")
}