mirror of https://github.com/restic/restic.git
Add String() for Blob
This commit is contained in:
parent
bad6184ab5
commit
6808523d34
|
@ -67,6 +67,11 @@ type Blob struct {
|
||||||
Offset uint
|
Offset uint
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (b Blob) String() string {
|
||||||
|
return fmt.Sprintf("<Blob %v/%v len %v, off %v>",
|
||||||
|
b.ID.Str(), b.Type, b.Length, b.Offset)
|
||||||
|
}
|
||||||
|
|
||||||
// Packer is used to create a new Pack.
|
// Packer is used to create a new Pack.
|
||||||
type Packer struct {
|
type Packer struct {
|
||||||
blobs []Blob
|
blobs []Blob
|
||||||
|
|
Loading…
Reference in New Issue