"Fossies" - the Fresh Open Source Software Archive 
Member "gdrive-2.1.1/vendor/google.golang.org/api/googleapi/internal/uritemplates/utils.go" (28 May 2021, 357 Bytes) of package /linux/misc/gdrive-2.1.1.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Go source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 // Copyright 2016 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package uritemplates
6
7 func Expand(path string, values map[string]string) (string, error) {
8 template, err := parse(path)
9 if err != nil {
10 return "", err
11 }
12 return template.Expand(values), nil
13 }