From 055007c45983fc4ad03dc941f35d2e5562e32d46 Mon Sep 17 00:00:00 2001 From: irlndts Date: Mon, 22 Jan 2018 21:15:06 +0300 Subject: [PATCH] improvement --- releases.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/releases.go b/releases.go index ffeaacf..fcb4be5 100644 --- a/releases.go +++ b/releases.go @@ -41,8 +41,8 @@ type Release struct { Year int `json:"year"` } -type RequestRelease struct { - Curr_abbr string +type ReqRelease struct { + CurrAbbr string } // Release returns release by release's ID @@ -50,7 +50,7 @@ func (c *Client) Release(releaseID int) (*Release, error) { release := new(Release) apiError := new(APIError) - req := &RequestRelease{Curr_abbr: c.currency} + req := &ReqRelease{CurrAbbr: c.currency} _, err := c.api.New().Get("releases/"+strconv.Itoa(releaseID)).QueryStruct(req).Receive(release, apiError) return release, relevantError(err, *apiError) }