Categorygithub.com/corezoid/gitcall-go-runner
repositorypackage
1.0.0
Repository: https://github.com/corezoid/gitcall-go-runner.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

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