summaryrefslogtreecommitdiff
path: root/types.go
diff options
context:
space:
mode:
Diffstat (limited to 'types.go')
-rw-r--r--types.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/types.go b/types.go
index 8ff9bc6..a163640 100644
--- a/types.go
+++ b/types.go
@@ -139,3 +139,19 @@ func (w *SCORSHworker) String() string {
return buff.String()
}
+
+func (msg *SCORSHclient_msg) String() string {
+
+ var buff bytes.Buffer
+
+ for _, t := range msg.Tags {
+
+ fmt.Fprintf(&buff, "s_tag: %s\n", t.Tag)
+ for _, a := range t.Args {
+ fmt.Fprintf(&buff, " s_args: %s\n", a)
+ }
+ }
+
+ return buff.String()
+
+}