Commit 5061e9cd authored by Sander van Harmelen's avatar Sander van Harmelen

Merge pull request #4 from svanharmelen/dev

Return a pointer instead
parents 2ab1a4eb b8b6e4b8
......@@ -149,8 +149,9 @@ func NewClient(httpClient *http.Client, token string) *Client {
}
// BaseURL return a copy of the baseURL.
func (c *Client) BaseURL() url.URL {
return *c.baseURL
func (c *Client) BaseURL() *url.URL {
u := *c.baseURL
return &u
}
// SetBaseURL sets the base URL for API requests to a custom endpoint. urlStr
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment