Go Developing for Multiple Platforms with Conditional Compiling File suffix


Example

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