From 10a0631ecbdaba5efde33f31aafe8a9322be6223 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 6 Jun 2019 14:25:05 +0800 Subject: [PATCH] test --- msg.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/msg.go b/msg.go index 0aadd68..2f16d32 100644 --- a/msg.go +++ b/msg.go @@ -1,7 +1,6 @@ package main import ( - "encoding/json" "fmt" "log" "regexp" @@ -49,8 +48,7 @@ func parseSubTypeMessageAuctionAnnounce(m *ChatWarsMessage, r *regexp.Regexp) (* cwm.Price = int32(p) cwm.Status = r.ReplaceAllString(m.Text, "${Status}") cwm.End, _ = fromChatWarsDate(r.ReplaceAllString(m.Text, "${End}")) - b, _ := json.Marshal(cwm) - fmt.Printf("%s\n", string(b)) + return &cwm, nil }