Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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).