I understand GO code can be compiled for different platforms (OS).
Lets say I compile on Windows for Linux. If I need a dependency to a Linux system lib - how is this dependency resolved?
I understand GO code can be compiled for different platforms (OS).
Lets say I compile on Windows for Linux. If I need a dependency to a Linux system lib - how is this dependency resolved?
It seems, like to reference system libs of another OS, for example linux system libs when compiling from windows - the linux system libs must be present on the windows system.
The same would be the case, when using special libs, for example when calling c-libs using "cgo", which maybe could implement some device specific functions. For example on a coffee machine - the functions which starts making coffee or cleaning the machine.