1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-25 01:06:39 +00:00

Add Blob.String()

This commit is contained in:
Alexander Neumann 2017-02-06 19:50:27 +01:00
parent 0c867b21ff
commit 436b5dc20c

View file

@ -14,6 +14,11 @@ type Blob struct {
Offset uint
}
func (b Blob) String() string {
return fmt.Sprintf("<Blob (%v) %v, offset %v, length %v>",
b.Type, b.ID.Str(), b.Offset, b.Length)
}
// PackedBlob is a blob stored within a file.
type PackedBlob struct {
Blob