use named params

Signed-off-by: Raffaele Di Fazio <raffo@github.com>
This commit is contained in:
Raffaele Di Fazio 2021-09-16 18:49:44 +02:00
parent 22e9da790c
commit 455dabb484

View file

@ -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 {