hash

package
v0.0.0-...-0b3308b Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2017 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package hash provides utility functions to process complex data types, like data streams, files, or sequences of structs of different types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(hash hash.Hash, bytes ...[]byte) ([]byte, error)

Bytes returns the hash of all given byte slices.

func File

func File(hash hash.Hash, file string) ([]byte, error)

File returns the hash of a file.

func Stream

func Stream(hash hash.Hash, stream io.Reader) ([]byte, error)

Stream returns the hash of a data stream.

func Structures

func Structures(hash hash.Hash, args ...interface{}) ([]byte, error)

Structures returns the hash of all the given arguments. Each argument has to implement the BinaryMarshaler interface.

Types

This section is empty.

Jump to

Keyboard shortcuts

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