Skip to content

hattya/go.binfmt

Repository files navigation

go.binfmt

An extension library for os/exec.

pkg.go.dev GitHub Actions Appveyor Codecov

Installation

$ go get -u github.com/hattya/go.binfmt

Usage

package main

import (
	"fmt"
	"os"

	"github.com/hattya/go.binfmt"
)

func main() {
	cmd := binfmt.Command("rst2html5.py", "README.rst", "README.html")
	cmd.Stdin = os.Stdin
	cmd.Stdout = os.Stdout
	cmd.Stderr = os.Stderr
	if err := cmd.Run(); err != nil {
		fmt.Fprintln(os.Stderr, err)
		os.Exit(1)
	}
}

License

go.binfmt is distributed under the terms of the MIT License.

About

An extension library for os/exec

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages