You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say a user uses the Go SDK and wants to "share" a Go function from their app to a plugin, making it an import to said plugin.
funclogMessage(msgstring) {
log.Println("from plugin:", msg)
}
funcmain() {
ext:=extism.New()
plugin:= ext.LoadPlugin(...)
// provide a handle to the function, adding some detail about // what function to call, the "namespace" (module namespace // to import from in wasm), the function name within wasm, and // its params/returnsplugin.AddFunc(logMessage, "AcmeAppLib", "log", ...params) // tbd, how to declare the params/returns hereout, err:=plugin.Call(...)
// ...
}
The text was updated successfully, but these errors were encountered:
Say a user uses the Go SDK and wants to "share" a Go function from their app to a plugin, making it an import to said plugin.
The text was updated successfully, but these errors were encountered: