-
-
Notifications
You must be signed in to change notification settings - Fork 98
Closed
Description
Windows 10 (version 2004)
go version go1.14.2 windows/amd64
Steps to reproduce:
- Create "mixed-output.go"
package main
import (
"fmt"
"github.com/mattn/go-colorable"
"sync"
)
func main() {
stdout := colorable.NewColorableStdout()
wg := &sync.WaitGroup{}
for i := 0; i < 3; i++ {
wg.Add(1)
go func() {
_, _ = fmt.Fprintln(stdout, "\u001b[32mHello\u001b[0m", "World")
wg.Done()
}()
}
wg.Wait()
}
- Open Command Prompt (cmd.exe) and cd to file's parent folder.
go build mixed-output.go
- Run
mixed-output.exe
, the output is mixed.
Metadata
Metadata
Assignees
Labels
No labels