All it does is just parser command strings to feed into go-pipe
https://github.com/b4b4r07/go-pipe
go get github.com/webermarci/go-pipe-parser
package main
import (
"log"
pipeparser "webermarci/go-pipe-parser"
)
func main() {
command := "ls -la | grep root"
result, err := pipeparser.Run(command)
if err != nil {
log.Panicln(err)
}
log.Println(result.String())
}