hashing

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateSha256 added in v1.3.2

func CalculateSha256(ctx context.Context, filePath string) (sha string, n int64, err error)

func MustCalculateFileHash

func MustCalculateFileHash(filePath string) (sha string, n int64)

func MustCalculateHash

func MustCalculateHash(file io.Reader) (sha string, n int64)

func MustDecodeSha256String

func MustDecodeSha256String(shaString string) (sha [sha256.Size]byte)

func MustHash

func MustHash(ctx context.Context, hashFilePath string) config.FileInfoMap

Types

This section is empty.

Jump to

Keyboard shortcuts

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