Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 944 Bytes

README.md

File metadata and controls

42 lines (33 loc) · 944 Bytes

process

Managing processes with Go

GoDoc Gitter Build Status

example usage

package main
import (
	"os/exec"
	"time"

	"github.com/nightlyone/process"
)

func main() {
	cmd := exec.Command("true")
	group, err := process.Background(cmd)
	if err != nil {
		panic(err)
	}
	group.Terminate(1 * time.Second)
}

LICENSE

BSD

build and install

Install Go 1, either from source or with a prepackaged binary.

Then run

go get github.com/nightlyone/process

NOTE

This package will only work on UNIX based systems