From 436b5dc20cb734e13a3ac8f923ca748a5639d5bc Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Mon, 6 Feb 2017 19:50:27 +0100 Subject: [PATCH] Add Blob.String() --- src/restic/blob.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/restic/blob.go b/src/restic/blob.go index 670fd2fdf..35887121c 100644 --- a/src/restic/blob.go +++ b/src/restic/blob.go @@ -14,6 +14,11 @@ type Blob struct { Offset uint } +func (b Blob) String() string { + return fmt.Sprintf("", + b.Type, b.ID.Str(), b.Offset, b.Length) +} + // PackedBlob is a blob stored within a file. type PackedBlob struct { Blob