import ( "github.com/rackspace/gophercloud/openstack" "github.com/rackspace/gophercloud" ) // Create a new ProviderClient instance authOpts := gophercloud.AuthOptions{ IdentityEndpoint: "https://identity.api.rackspacecloud.com/v2.0", Username: "myusername", Password: "mypassword", } provider, err := openstack.AuthenticatedClient(authOpts) // Use EndpointLocator to find the compute endpoint for Rackspace London computeEndpoint, err := openstack.EndpointLocator(provider, "compute", "LON")In the code above, we first create a new ProviderClient instance by specifying our Rackspace credentials and the API endpoint for identity authentication. We then use EndpointLocator to find the compute endpoint for the Rackspace London region. Overall, the github.com.rackspace.gophercloud package provides a useful toolset for developers looking to work with the Rackspace cloud API in Go.