didnt implement windows correctly
This commit is contained in:
parent
c5453844f8
commit
ce5d25c676
1 changed files with 2 additions and 2 deletions
|
@ -30,10 +30,10 @@ type Listen struct {
|
|||
}
|
||||
|
||||
func printStatus(msg string) {
|
||||
c := color.New(color.FgWhite)
|
||||
if runtime.GOOS == "windows" {
|
||||
c.Fprintf(color.Output, "%s", msg)
|
||||
fmt.Fprintf(color.Output, "%s", color.WhiteString(msg))
|
||||
} else {
|
||||
c := color.New(color.FgWhite)
|
||||
c.Fprintf(os.Stderr, "%s", msg)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue