go-loader-test/plugins/tmptest/main.go

9 lines
177 B
Go

package mypackage
import "encoding/json"
func MyFunc(input []byte) (interface{}, error) {
var output interface{}
err := json.Unmarshal(input, &output)
return output, err
}