Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
go-gitlab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
go-gitlab
Commits
2ab1a4eb
Commit
2ab1a4eb
authored
Aug 03, 2015
by
Sander van Harmelen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3 from svanharmelen/dev
Add func to retrieve the baseURL
parents
ac119b95
1d8424d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
gitlab.go
gitlab.go
+5
-0
No files found.
gitlab.go
View file @
2ab1a4eb
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment