I need to build in go for linux and windows with different packages same file
on windows I need to import github.com/hashicorp/go-syslog
and on linux import log/syslog
and inside code in file I have to use syslog.ALERT
or gsyslog.ALERT
depending on os. Does exist on Go
something like macros in C++
like #ifdef
so I can choose what to build based on flag ? How to achieve this without, same file to have different content for build based on OS ?