nkanaev / yarr

yet another rss reader
MIT License
3.02k stars 225 forks source link

Log to console on Windows #81

Closed dufferzafar closed 3 years ago

dufferzafar commented 3 years ago

This uses the module http://github.com/ffred/guitocons which fixes #80 and the exe can now output to Windows console.

➜ _output/windows/yarr.exe -addr 0.0.0.0:7090 -db local.db
2021/11/06 21:07:37 main.go:90: using db file local.db
2021/11/06 21:07:37 main.go:137: starting server at http://0.0.0.0:7090

But this will probably break the build on other platforms. I'm new to Go so if you can suggest how can I structure the code so that this only affects Windows, I'd make the change.