summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/olivere/elastic/uritemplates/utils.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/olivere/elastic/uritemplates/utils.go')
-rw-r--r--vendor/github.com/olivere/elastic/uritemplates/utils.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/vendor/github.com/olivere/elastic/uritemplates/utils.go b/vendor/github.com/olivere/elastic/uritemplates/utils.go
deleted file mode 100644
index 399ef4623..000000000
--- a/vendor/github.com/olivere/elastic/uritemplates/utils.go
+++ /dev/null
@@ -1,13 +0,0 @@
-package uritemplates
-
-func Expand(path string, expansions map[string]string) (string, error) {
- template, err := Parse(path)
- if err != nil {
- return "", err
- }
- values := make(map[string]interface{})
- for k, v := range expansions {
- values[k] = v
- }
- return template.Expand(values)
-}