String returns the hash type and the hash separated by a colon, for example: "md5:090992ba9fd140077b0661cb75f7ce13" "sha1:ebfb681885ddf1234c18094a45bbeafd91467911"
()
| 31 | // "md5:090992ba9fd140077b0661cb75f7ce13" |
| 32 | // "sha1:ebfb681885ddf1234c18094a45bbeafd91467911" |
| 33 | func (c *FileChecksum) String() string { |
| 34 | return c.Type + ":" + hex.EncodeToString(c.Value) |
| 35 | } |
| 36 | |
| 37 | // A ChecksumError is returned when a checksum differs |
| 38 | type ChecksumError struct { |
no outgoing calls