Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 4 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-18T16:00:46.000Z (about 6 years ago)
- Last Synced: 2024-06-20T15:47:42.523Z (5 months 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 [![Build Status](https://travis-ci.org/LouisBrunner/go-iowrap.svg?branch=master)](https://travis-ci.org/LouisBrunner/go-iowrap) [![Coverage Status](https://coveralls.io/repos/github/LouisBrunner/go-iowrap/badge.svg?branch=master)](https://coveralls.io/github/LouisBrunner/go-iowrap?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/LouisBrunner/go-iowrap)](https://goreportcard.com/report/github.com/LouisBrunner/go-iowrap) [![GoDoc](https://godoc.org/github.com/LouisBrunner/go-iowrap?status.svg)](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!")
}
}```