From 05b36eab154e436db29dd63e7b53e80740275b2c Mon Sep 17 00:00:00 2001 From: Tyler Date: Mon, 8 May 2017 23:06:48 -0400 Subject: [PATCH] Make sure New returns a value --- ovrstat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ovrstat.go b/ovrstat.go index 4fba4a4..60bf5e1 100644 --- a/ovrstat.go +++ b/ovrstat.go @@ -12,7 +12,7 @@ type OvrStatApi struct { URL string } -func New(apiUrl string) { +func New(apiUrl string) *OvrStatApi { return &OvrStatApi{Client: &http.Client{}, URL: apiUrl} }