Let's include the / in service endpoints.
diff --git a/service_client.go b/service_client.go
index cca5a74..83ad69b 100644
--- a/service_client.go
+++ b/service_client.go
@@ -9,11 +9,11 @@
Provider *ProviderClient
// Endpoint is the base URL of the service's API, acquired from a service catalog.
- // It should NOT end with a /.
+ // It MUST end with a /.
Endpoint string
}
// ServiceURL constructs a URL for a resource belonging to this provider.
func (client *ServiceClient) ServiceURL(parts ...string) string {
- return client.Endpoint + "/" + strings.Join(parts, "/")
+ return client.Endpoint + strings.Join(parts, "/")
}