Package goexec is a fluent decorator based API for os/exec.
Looking for v1, see the master branch
go get -u github.com/brad-jones/goexec/v2
package main
import (
"github.com/brad-jones/goexec/v2"
)
func main() {
goexec.Run("ping", "-c", "4", "8.8.8.8")
}
Also see further working examples under: https://github.com/brad-jones/goexec/tree/v2/examples