无法为共享库编译插件

Nik*_*ntz 5 plugins compiler-errors shared-libraries static-libraries go

看来我的问题是GoLang在插件中包含运行时,因此它们无法共享。我做了

go install -buildmode=shared std

然后我尝试将我的插件编译为共享:

 go build -buildmode=plugin -linkshared /tmp/code_SUM.go
# command-line-arguments
runtime.islibrary: missing Go type information for global symbol: size 1
Run Code Online (Sandbox Code Playgroud)

我的密码

# cat /tmp/code_SUM.go
package main
import (
        "fmt"
)
func SUM(x int, y int) int { fmt.Println("")
return x+y}
Run Code Online (Sandbox Code Playgroud)

是否有任何解决方法或某种修补/更改Go编译器/语言的方法,以使我的程序得以实现?