Jon Perritt | fd53bba | 2014-10-03 00:41:22 -0500 | [diff] [blame] | 1 | package apiversions |
2 | |||||
3 | import ( | ||||
4 | "strings" | ||||
5 | |||||
6 | "github.com/rackspace/gophercloud" | ||||
7 | ) | ||||
8 | |||||
9 | func getURL(c *gophercloud.ServiceClient, version string) string { | ||||
10 | return c.ServiceURL(strings.TrimRight(version, "/") + "/") | ||||
11 | } | ||||
12 | |||||
13 | func listURL(c *gophercloud.ServiceClient) string { | ||||
14 | return c.ServiceURL("") | ||||
15 | } |