It looks like my issue is that GoLang includes the runtime in plugins so that they cannot be shared. I did
go install -buildmode=shared std
And then I try to compile my plugin as shared:
go build -buildmode=plugin -linkshared /tmp/code_SUM.go
# command-line-arguments
runtime.islibrary: missing Go type information for global symbol: size 1
My code
# cat /tmp/code_SUM.go
package main
import (
"fmt"
)
func SUM(x int, y int) int { fmt.Println("")
return x+y}
Is there any workaround or some way to patch / change the Go compiler / language in order to make my program happen?