wip: pipe stdout & stderr

This commit is contained in:
2023-12-09 02:44:06 +00:00
parent d9d1fe72d4
commit 9128503da1
8 changed files with 217 additions and 6 deletions

View File

@@ -0,0 +1,18 @@
package main
import (
"fmt"
"log"
"time"
)
func main() {
for i := 0; i < 10; i++ {
log.Println("using log.Println")
fmt.Println("using fmt.Println")
time.Sleep(time.Millisecond * 500)
}
log.Println("log: finishing up")
fmt.Println("fmt: finishing up")
}