Documentation ¶
Index ¶
- Variables
- func CRC32(file io.ReadCloser, expected string) (string, bool, error)
- func FileToReader(file string) (io.Reader, error)
- func GuessHashType(hash string) string
- func MD5(file io.ReadCloser, expected string) (string, bool, error)
- func Register(id string, function HashFunc) error
- func SHA1(file io.ReadCloser, expected string) (string, bool, error)
- func SHA256(file io.ReadCloser, expected string) (string, bool, error)
- func SHA512(file io.ReadCloser, expected string) (string, bool, error)
- type CacheFile
- type HashFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrHashFuncExists = fmt.Errorf("hasher already exists") ErrorHashFuncNotFound = fmt.Errorf("hasher not found") )
Functions ¶
func FileToReader ¶
Given a filename, return a reader for the file or an error if the file cannot be opened
func GuessHashType ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.