aboutsummaryrefslogtreecommitdiff
path: root/go/operation/lookup.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/operation/lookup.go')
-rw-r--r--go/operation/lookup.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/go/operation/lookup.go b/go/operation/lookup.go
index e6b6658da..70bc7146e 100644
--- a/go/operation/lookup.go
+++ b/go/operation/lookup.go
@@ -3,7 +3,7 @@ package operation
import (
"encoding/json"
"errors"
- _ "fmt"
+ "fmt"
"math/rand"
"net/url"
"strings"
@@ -22,6 +22,10 @@ type LookupResult struct {
Error string `json:"error,omitempty"`
}
+func (lr *LookupResult) String() string {
+ return fmt.Sprintf("VolumeId:%s, Locations:%v, Error:%s", lr.VolumeId, lr.Locations, lr.Error)
+}
+
var (
vc VidCache
)