forked from TrueCloudLab/restic
Add Blob.String()
This commit is contained in:
parent
0c867b21ff
commit
436b5dc20c
1 changed files with 5 additions and 0 deletions
|
@ -14,6 +14,11 @@ type Blob struct {
|
||||||
Offset uint
|
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.
|
// PackedBlob is a blob stored within a file.
|
||||||
type PackedBlob struct {
|
type PackedBlob struct {
|
||||||
Blob
|
Blob
|
||||||
|
|
Loading…
Reference in a new issue