Skip to content

corezoid/gitcall-go-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors