2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-02 19:49:44 +00:00

Add String() for Blob

This commit is contained in:
Alexander Neumann 2016-08-07 18:42:58 +02:00
parent bad6184ab5
commit 6808523d34

View File

@ -67,6 +67,11 @@ type Blob struct {
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.
type Packer struct {
blobs []Blob