/execcutor

🪤 A tiny execution wrapper for programs that run safely and shutdown gracefully

Primary LanguageGoMIT LicenseMIT

Executtor

A tiny execution wrapper for programs that run safely and shutdown gracefully (if possible)

Install Executtor

go get github.com/drgomesp/executtor

Basic Example

package main

import (
	"context"
	"log"

	x "github.com/drgomesp/execcutor"
)

func main() {
	// Run returns an error which you can capture and handle
	_ = x.Run(func(ctx context.Context, args ...string) error {
		// and the program runs here  
		return nil
	})
}

More examples

See examples/

License

MIT


Built by Daniel Ribeiro.