https://github.com/louisbrunner/go-iowrap
Small utility library to wrap the standard output/error streams
https://github.com/louisbrunner/go-iowrap
golang utils
Last synced: 11 days ago
JSON representation
Small utility library to wrap the standard output/error streams
- Host: GitHub
- URL: https://github.com/louisbrunner/go-iowrap
- Owner: LouisBrunner
- License: mit
- Created: 2018-08-18T15:11:26.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-18T16:00:46.000Z (almost 8 years ago)
- Last Synced: 2025-01-04T19:43:33.455Z (over 1 year ago)
- Topics: golang, utils
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-iowrap [](https://travis-ci.org/LouisBrunner/go-iowrap) [](https://coveralls.io/github/LouisBrunner/go-iowrap?branch=master) [](https://goreportcard.com/report/github.com/LouisBrunner/go-iowrap) [](https://godoc.org/github.com/LouisBrunner/go-iowrap)
Simple gopher client (in Go)
# Install it
```
go get -u github.com/LouisBrunner/go-iowrap
```
# Usage
```go
import (
"fmt"
"github.com/LouisBrunner/go-iowrap"
)
func main() {
content := iowrap.WrapStdout(func() {
fmt.Printf("123\n")
})
if string(content) != "123\n" {
panic("failed!")
}
}
```