corezoid / gitcall-go-runner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gitcall usercode runner

Usage

To build your Go usercode runner you need to include github.com/corezoid/gitcall-go-runner/gitcall package, implement usercode handler function and main function. See example code:

package main

import (
	"context"

	"github.com/corezoid/gitcall-go-runner/gitcall"
)

func main() {
	gitcall.Handle(func (_ context.Context, data map[string]interface{}) error {
        data["foo"] = "bar"
       
        return nil
   })
}

Test

> make install
> make build-test
> make test

About


Languages

Language:Go 89.0%Language:Makefile 11.0%