Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
pipeline
✓ github.com/mattn/go-pipeline
Runs a pipeline of commands and captures output.
package main
import (
"fmt"
"github.com/mattn/go-pipeline"
)
func main() {
out, err := pipeline.Output(
pipeline.Command("echo", "hello"),
pipeline.Command("wc", "-c"),
)
if err != nil {
panic(err)
}
fmt.Println(string(out))
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.0-20190323144519-32d779b32768latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.