Categorygithub.com/chuqingq/simple-subprocess
repositorypackage
0.1.2
Repository: https://github.com/chuqingq/simple-subprocess.git
Documentation: pkg.go.dev

# README

simple-subprocess GoDoc

A simple subprocess module for Go, like os/exec.

Features

  1. Support using stdin, stdout to communicate to subprocess. Encode/decode as util.Message, like json.
  2. Support capturing subprocess's stderr.
  3. Support canceling/killing subprocess.

TODO

  • make sure that if parent exit or panic, subprocess will exit too.
  • no dempends on util.Message.
  • tests.