diff options
author | Kevin Chabowski <kevin@kch42.de> | 2014-03-27 12:28:05 +0100 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2014-03-27 23:51:07 +0100 |
commit | dfd11c94c1ad5261caa43128a39fcce550edf61d (patch) | |
tree | b80458e610077b17da9815d14f71f590d4de56af /chat | |
parent | c35e43e9cf0f915236016a3f73a6ee6bc9962e0b (diff) | |
download | simplechat-dfd11c94c1ad5261caa43128a39fcce550edf61d.tar.gz simplechat-dfd11c94c1ad5261caa43128a39fcce550edf61d.tar.bz2 simplechat-dfd11c94c1ad5261caa43128a39fcce550edf61d.zip |
Chat now works on the client side
Diffstat (limited to 'chat')
-rw-r--r-- | chat/messages.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chat/messages.go b/chat/messages.go index dbcd150..eed62fa 100644 --- a/chat/messages.go +++ b/chat/messages.go @@ -26,7 +26,7 @@ func (mt MsgType) String() string { return "???" } -func (mt *MsgType) MarshalJSON() ([]byte, error) { +func (mt MsgType) MarshalJSON() ([]byte, error) { return json.Marshal(mt.String()) } |