From fc6a593c684283cdd58a2960cafe9943818a613d Mon Sep 17 00:00:00 2001 From: Mahmud Ridwan Date: Mon, 7 Jun 2021 11:50:45 +0600 Subject: [PATCH] Update go.md --- templates/docs/go.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/docs/go.md b/templates/docs/go.md index e337bc16..d8b1d918 100644 --- a/templates/docs/go.md +++ b/templates/docs/go.md @@ -14,10 +14,11 @@ func main() { Timeout: 10 * time.Second, } - _, err := client.Head("PING_URL") + resp, err := client.Head("PING_URL") if err != nil { fmt.Printf("%s", err) } + resp.Body.Close() } ```