hash

package
v0.0.0-...-ba3cf3f Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeHash

func ComputeHash(object interface{}) (string, error)

ComputeHash computes hash for passed struct using default Serialize function

func ComputeHashWithSerialize

func ComputeHashWithSerialize(object interface{}, serialize func(object interface{}) ([]byte, error)) (string, error)

ComputeHashWithSerialize computes hash based on passed struct before computing hash, serializes object using provided function

func Serialize

func Serialize(object interface{}) ([]byte, error)

Serialize serializes passed struct to bytes using GOB

Types

This section is empty.

Jump to

Keyboard shortcuts

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