hashpipe

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2017 License: MIT Imports: 2 Imported by: 0

README

go-hashpipe

A simple go convenience tool to hash data that comes/goes through io.Reader/io.Writer

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReader

func NewReader(h hash.Hash) func(io.Reader) io.Reader

NewReader binds a hash.Hash to an io.Reader so that everything written to the resulting writer will also be hashed

func NewWriter

func NewWriter(h hash.Hash) func(io.Writer) io.Writer

NewWriter binds a hash.Hash to an io.Writer so that everything written to the resulting writer will also be hashed

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL