I need to build on linux and windows with different packages the same file on windows i need import github.com/hashicorp/go-syslogon linux tooimport log/syslog
and inside the code in the file I have to use syslog.ALERTor gsyslog.ALERTdepending on os. Is there Gosomething like macros in C++, for example #ifdef, so I can choose what to build on the basis of the flag? How to achieve this without the same file in order to have different content for OS-based builds?
source
share