summaryrefslogtreecommitdiff
path: root/types.go
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2017-07-19 06:36:00 +0100
committerKatolaZ <katolaz@freaknet.org>2017-07-19 06:36:00 +0100
commit40c8aae58491b07adb05d348d1ddf86ce5ec2be8 (patch)
tree52dae87ff1dc2a65a3fe45be5f18053fb0d62ac1 /types.go
parent30e2f9e350197cfda09766ef34112e4e3eb261b9 (diff)
Added Licence. Amended Makefile: scorsh -> scorshd. getting closer.
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()
+
+}