From 455dabb484f818cb88e1e204b98ff86e2cf5cb8f Mon Sep 17 00:00:00 2001 From: Raffaele Di Fazio Date: Thu, 16 Sep 2021 18:49:44 +0200 Subject: [PATCH] use named params Signed-off-by: Raffaele Di Fazio --- internal/api/api.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/api/api.go b/internal/api/api.go index db26191a8..d7aee0f66 100644 --- a/internal/api/api.go +++ b/internal/api/api.go @@ -51,7 +51,11 @@ type API struct { } func New(token string) *API { - return &API{token, &http.Client{}, githubAPI} + return &API{ + token: token, + client: &http.Client{}, + githubAPI: githubAPI, + } } type User struct {