Simple package for running shell scripts with Go. Pairs well with gorun.
/// 2>/dev/null ; gorun "$0" "$@" ; exit $?
package main
import (
"fmt"
"github.com/matthewmueller/shell"
)
var sh = shell.Runf
func main() {
hi := sh("echo %q", "hi")
fmt.Printf(hi)
}
go get -u github.com/matthewmueller/shell
MIT