/xio

Go package providing a wrapper for a Writer supporting WriteString and WriteByte.

Primary LanguageGoBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

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:

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.