use named params
Signed-off-by: Raffaele Di Fazio <raffo@github.com>
This commit is contained in:
parent
22e9da790c
commit
455dabb484
1 changed files with 5 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue