Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMismatch = errors.New("checksum mismatch")
View Source
var ErrNotFound = errors.New("no checksum found")
Functions ¶
func Check ¶ added in v0.0.2
Check verifies the checksum of targetFile. The hash from the first line matching the targetFile is checked. Any succeeding lines are ignored. The line format is the output from #PrintHash, which is similar to the unix coreutils commands e.g `sha1` `sha512` ...
func StringOfHash ¶
Types ¶
type HashReader ¶
func (HashReader) String ¶ added in v0.0.2
func (h HashReader) String() string
Click to show internal directories.
Click to hide internal directories.