Subprocess abstracts running processes with restarts.
go get -u github.com/jakubdal/subprocess
proc, err := subprocess.NewProcess(context.Background(), nil, "sleep", nil, "3s")
proc.Stop()
proc.Signal(os.Interrupt)
Subprocess abstracts running processes with restarts.
go get -u github.com/jakubdal/subprocess
proc, err := subprocess.NewProcess(context.Background(), nil, "sleep", nil, "3s")
proc.Stop()
proc.Signal(os.Interrupt)