feat: support creating and calling custom functions with go plugin

This commit is contained in:
debugtalk
2021-12-28 21:14:15 +08:00
parent 49829a6fc7
commit 2da666a4e6
9 changed files with 274 additions and 68 deletions

View File

@@ -0,0 +1,14 @@
package main
import (
"fmt"
"log"
)
func init() {
log.Println("plugin init function called")
}
func Concatenate(a int, b string, c float64) string {
return fmt.Sprintf("%v_%v_%v", a, b, c)
}