The best real world example I know of mixing cgo and plugins is https://github.com/eawsy/aws-lambda-go-shim and it works pretty well.
It compiles a go program as a native library using cgo, which is loading some more golang code compiled as a plugin. The native library also happens to implement the Python module binary interface so eventually golang code can be called by the Python AWS Lambda runtime, but it should work with any other Python program. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.