Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ulikunitz/xio
Go package providing a wrapper for a Writer supporting WriteString and WriteByte.
https://github.com/ulikunitz/xio
Last synced: 6 days ago
JSON representation
Go package providing a wrapper for a Writer supporting WriteString and WriteByte.
- Host: GitHub
- URL: https://github.com/ulikunitz/xio
- Owner: ulikunitz
- License: bsd-3-clause
- Created: 2020-08-30T13:47:16.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-26T08:48:08.000Z (over 4 years ago)
- Last Synced: 2024-12-03T16:56:08.166Z (2 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xio
Go Package tha can convert any value of interface io.Writer into a full
writer supporting Write, WriteString and WriteByte method.It can be used as follows:
```go
h := sha256.New()
w := xio.WrapWriter(h)
w.WriteString("Hello, world!")
fmt.Printf("hash value %x\n", h.Sum(nil))
```The package has been developed in response to Go issue
[38776](https://github.com/golang/go/issues/38776).