summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordemo <demo@antix1>2026-05-24 23:12:59 -0400
committerdemo <demo@antix1>2026-05-24 23:13:47 -0400
commit2c799ed7ac9b7e2d2133a6b46a68d373ea85930d (patch)
tree4ee4a94c4de6cdde0df7612a437450b65082c726
parentd3e48546d90c94e408cba20de1e66e155a5ada11 (diff)
feat: use log.Fatal instead of fmt.Println
I figure this would draw attention to me more handily if any of these reads did in fact succeed.
-rw-r--r--main.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.go b/main.go
index fc2b9ca..feb3dfe 100644
--- a/main.go
+++ b/main.go
@@ -3,6 +3,7 @@ package main
import (
"flag"
"fmt"
+ "log"
"sync"
"time"
)
@@ -43,15 +44,15 @@ loop:
// If any of these prints out, we know we did something wrong.
for range p0 {
- fmt.Println("P0")
+ log.Fatal("P0")
}
for range p1 {
- fmt.Println("P1")
+ log.Fatal("P1")
}
for range p2 {
- fmt.Println("P2")
+ log.Fatal("P2")
}
fmt.Println("Done for real!")