|
|
|
|
|
by yencabulator
1361 days ago
|
|
The C ABI is nowhere near enough for passing arbitrary Go structs, all you need is a map or a sync.Mutex field and you need to exactly match plugin compilation to caller compilation. I wish https://pkg.go.dev/plugin was clearly documented as not being a viable 3rd party plugin solution. |
|
(There are also higher-level ABIs like COM, but they are usually reducible to the C ABI in practice - e.g. COM can be described entirely in terms of struct and function pointers.)