package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Apr 6, 2026
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type ChecksumError struct {
XMLName xml.Name `xml:"error"`
Code int `xml:"code,attr"`
Msg string `xml:"msg,attr"`
Path string `xml:"path,attr"`
}
type ChecksumFile struct {
XMLName xml.Name `xml:"file"`
Path string `xml:"path,attr"`
Absolute string `xml:"absolute,attr"`
SizeBytes int64 `xml:"size_bytes,attr"`
MD5 string `xml:"md5,attr"`
SHA1 string `xml:"sha1,attr"`
SHA256 string `xml:"sha256,attr"`
}
type ChecksumResult struct {
XMLName xml.Name `xml:"checksums"`
Timestamp int64 `xml:"timestamp,attr"`
Files []ChecksumFile `xml:"file,omitempty"`
Errors []ChecksumError `xml:"error,omitempty"`
}
type Config struct {
Algorithms []string `flag:"" desc:"Hash algorithm (md5, sha1, sha256)"`
Verify bool `flag:"" desc:"Verify checksums from file"`
XML bool
JSON bool
Plain bool
Pretty bool
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.