Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 611 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 611 Bytes

reversereader

Package reversereader provides basic interfaces to read.
It traverse an io.Reader as a backward stream.

GoDoc

Installation

$ go get -u github.com/kteru/reversereader

Example

package main

import (
	"bytes"
	"io"
	"os"

	"github.com/kteru/reversereader"
)

func main() {
	readSeeker := bytes.NewReader([]byte("hello world"))

	revrd := reversereader.NewReader(readSeeker)

	io.Copy(os.Stdout, revrd)
	// => "dlrow olleh"
}