Essential Go Developing for Multiple Platforms with Conditional Compiling  Suggest an edit

File suffix

If you name your file lib_linux.go, all the content in that file will only be compiled in linux environments:

package lib

var OnlyCompiledInLinux string
  ↑ ↓ to navigate     ↵ to select     Esc to close