Commit 2ab1a4eb authored by Sander van Harmelen's avatar Sander van Harmelen

Merge pull request #3 from svanharmelen/dev

Add func to retrieve the baseURL
parents ac119b95 1d8424d4
......@@ -148,6 +148,11 @@ func NewClient(httpClient *http.Client, token string) *Client {
return c
}
// BaseURL return a copy of the baseURL.
func (c *Client) BaseURL() url.URL {
return *c.baseURL
}
// SetBaseURL sets the base URL for API requests to a custom endpoint. urlStr
// should always be specified with a trailing slash.
func (c *Client) SetBaseURL(urlStr string) error {
......
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