diff options
author | KatolaZ <katolaz@freaknet.org> | 2017-07-19 06:36:00 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2017-07-19 06:36:00 +0100 |
commit | 40c8aae58491b07adb05d348d1ddf86ce5ec2be8 (patch) | |
tree | 52dae87ff1dc2a65a3fe45be5f18053fb0d62ac1 /types.go | |
parent | 30e2f9e350197cfda09766ef34112e4e3eb261b9 (diff) |
Added Licence. Amended Makefile: scorsh -> scorshd. getting closer.
Diffstat (limited to 'types.go')
-rw-r--r-- | types.go | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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() + +} |