Skip to content

kteru/reversereader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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"
}

About

Read in reverse order for Golang

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages