https://github.com/hattya/go.binfmt
An extension library for os/exec
https://github.com/hattya/go.binfmt
exec go
Last synced: 3 months ago
JSON representation
An extension library for os/exec
- Host: GitHub
- URL: https://github.com/hattya/go.binfmt
- Owner: hattya
- License: mit
- Created: 2014-08-27T11:53:53.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2025-08-23T09:25:12.000Z (9 months ago)
- Last Synced: 2025-08-24T03:40:35.277Z (9 months ago)
- Topics: exec, go
- Language: Go
- Size: 47.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# go.binfmt
An extension library for [`os/exec`](https://pkg.go.dev/os/exec).
[](https://pkg.go.dev/github.com/hattya/go.binfmt)
[](https://github.com/hattya/go.binfmt/actions/workflows/ci.yml)
[](https://ci.appveyor.com/project/hattya/go-binfmt)
[](https://codecov.io/gh/hattya/go.binfmt)
## Installation
```console
$ go get github.com/hattya/go.binfmt
```
## Usage
```go
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.