From b4365edd1b458ab2f96597ba79da3becdd51ce2f Mon Sep 17 00:00:00 2001 From: ehlxr Date: Fri, 15 Nov 2019 18:22:14 +0800 Subject: [PATCH] init --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 9a148ff..1d81e0c 100644 --- a/main.go +++ b/main.go @@ -117,7 +117,9 @@ func dingToInfo(msg string) []byte { err) } - defer resp.Body.Close() + defer func() { + _ = resp.Body.Close() + }() body, _ := ioutil.ReadAll(resp.Body) log.Info("send to %s data <%s> result is %s",