mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-12-14 23:26:17 +00:00
Update github.com/rackspace/gophercloud to HEAD
This commit is contained in:
11
Godeps/_workspace/src/github.com/rackspace/gophercloud/params.go
generated
vendored
11
Godeps/_workspace/src/github.com/rackspace/gophercloud/params.go
generated
vendored
@@ -144,6 +144,17 @@ func BuildQueryString(opts interface{}) (*url.URL, error) {
|
||||
params.Add(tags[0], strconv.FormatInt(v.Int(), 10))
|
||||
case reflect.Bool:
|
||||
params.Add(tags[0], strconv.FormatBool(v.Bool()))
|
||||
case reflect.Slice:
|
||||
switch v.Type().Elem() {
|
||||
case reflect.TypeOf(0):
|
||||
for i := 0; i < v.Len(); i++ {
|
||||
params.Add(tags[0], strconv.FormatInt(v.Index(i).Int(), 10))
|
||||
}
|
||||
default:
|
||||
for i := 0; i < v.Len(); i++ {
|
||||
params.Add(tags[0], v.Index(i).String())
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Otherwise, the field is not set.
|
||||
|
||||
Reference in New Issue
Block a user