Hopefully fix colour output on Windows

This commit is contained in:
Neil Alexander
2021-07-10 13:29:56 +01:00
parent b92cbd6265
commit c7b5325820

View File

@@ -37,7 +37,7 @@ func (i *peerAddrList) Set(value string) error {
}
func main() {
rawlog := log.New(os.Stdout, "", 0)
rawlog := log.New(color.Output, "", 0)
green := color.New(color.FgGreen).SprintfFunc()
log := log.New(rawlog.Writer(), fmt.Sprintf("[ %s ] ", green("Yggmail")), 0)