To build your Go usercode runner you need to include
github.com/corezoid/gitcall-go-runner/runner
package,
implement usercode
handler function and main
function.
See example code:
package main
import (
"context"
"github.com/corezoid/gitcall-go-runner/runner"
)
func usercode(ctx context.Context, data map[string]interface{}) error {
data["foo"] = "bar"
return nil
}
func main() {
runner.Run(usercode)
}
> make install
> make build-test
> make test