Ubuntu Pastebin

Paste from zyga at Thu, 27 Apr 2017 08:44:03 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
diff --git a/client/packages.go b/client/packages.go
index d51d674..719372c 100644
--- a/client/packages.go
+++ b/client/packages.go
@@ -61,6 +61,10 @@ type Snap struct {
 	Channels map[string]*snap.ChannelSnapInfo `json:"channels"`
 }
 
+func (s *Snap) String() string {
+	return s.Name
+}
+
 type AppInfo struct {
 	Name    string   `json:"name"`
 	Daemon  string   `json:"daemon"`
Download as text