sha

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2018 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashFile

func HashFile(path string) (result []byte, err error)

HashFile computes the sha1 hash of the named file. If successful, the result will be a 20-byte string of hash data, otherwise err will be set to the cause of the failure.

On some platforms (notably Linux), this will try to not update the atime on the file, so that it is still useful.

Types

This section is empty.

Jump to

Keyboard shortcuts

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