ingress-nginx-helm/vendor/google.golang.org/api/googleapi/internal/uritemplates/utils.go

14 lines
357 B
Go
Raw Normal View History

2016-06-21 18:58:43 +00:00
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
2016-02-22 00:13:08 +00:00
package uritemplates
2016-06-21 18:58:43 +00:00
func Expand(path string, values map[string]string) (string, error) {
template, err := parse(path)
2016-02-22 00:13:08 +00:00
if err != nil {
return "", err
}
2016-06-21 18:58:43 +00:00
return template.Expand(values), nil
2016-02-22 00:13:08 +00:00
}