commit | 816d2a0eac005471dc869b87ebbccc10a1e27781 | [log] [tgz] |
---|---|---|
author | Jon Perritt <jrperritt@gmail.com> | Tue Mar 11 20:49:46 2014 -0500 |
committer | Jon Perritt <jrperritt@gmail.com> | Tue Apr 01 23:43:14 2014 -0500 |
tree | 8ebda8d20997e480ef150e9509bf9b5217d0e138 | |
parent | cc2cb47bbbcf74286443bb19b7aa33a463dbfd93 [diff] [blame] |
openstack object storage v02.0
diff --git a/openstack/utils/utils.go b/openstack/utils/utils.go index 0d4c05c..a814c7e 100644 --- a/openstack/utils/utils.go +++ b/openstack/utils/utils.go
@@ -50,3 +50,12 @@ return ao, nil } + +func BuildQuery(params map[string]string) string { + query := "?" + for k, v := range params { + query += k + "=" + v + "&" + } + query = query[:len(query)-1] + return query +}