repositorypackage
0.0.0-20251009134224-bd7033f50ab0
Repository: https://github.com/hattya/go.binfmt.git
Documentation: pkg.go.dev
# README
go.binfmt
An extension library for os/exec
.
Installation
$ go get 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.