mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Remove sentence suggesting that you can dynamically load a DLL on GNU/Linux
parent
d684530acd
commit
0f16ea98a6
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
There are a few ways to call "C" code from inside Go
|
There are a few ways to call "C" code from inside Go
|
||||||
|
|
||||||
First way: Dynamically load a dll, then call a method on it. You can call the method via "syscallXX" (the XX is number of parameters, but if it has few than that, like if you need seven parameter, then syscall9 will still work, you just tell it the number of arguments is 7). This way also works with Linux shared libraries, as well, if you're targeting linux:
|
First way: Dynamically load a dll, then call a method on it. You can call the method via "syscallXX" (the XX is number of parameters, but if it has few than that, like if you need seven parameter, then syscall9 will still work, you just tell it the number of arguments is 7).
|
||||||
|
|
||||||
A sample program that calls Windows DLLs from Go:
|
A sample program that calls Windows DLLs from Go:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user