Normalize code whitespace.
parent
654ecca4c5
commit
65ccba4d66
|
@ -38,7 +38,7 @@ type client struct {
|
||||||
httpClient *http.Client
|
httpClient *http.Client
|
||||||
|
|
||||||
// Insert an API token here if you have one. It will be sent across with all requests.
|
// Insert an API token here if you have one. It will be sent across with all requests.
|
||||||
AuthToken string
|
AuthToken string
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewClient Creates a new Client instance that wraps around the given HTTP client.
|
// NewClient Creates a new Client instance that wraps around the given HTTP client.
|
||||||
|
@ -50,11 +50,10 @@ func NewClient(h *http.Client) Client {
|
||||||
|
|
||||||
// SetToken Set the authentication token
|
// SetToken Set the authentication token
|
||||||
// Calling this method is *optional*
|
// Calling this method is *optional*
|
||||||
func (c* client) SetToken(authToken string) {
|
func (c *client) SetToken(authToken string) {
|
||||||
c.AuthToken=authToken
|
c.AuthToken = authToken
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (c *client) req(path string, pathValues ...interface{}) request {
|
func (c *client) req(path string, pathValues ...interface{}) request {
|
||||||
return request{c, fmt.Sprintf(path, pathValues...), url.Values{}}
|
return request{c, fmt.Sprintf(path, pathValues...), url.Values{}}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue