(input interface{}, name, template string)
| 342 | } |
| 343 | |
| 344 | func parseJSONPath(input interface{}, name, template string) (string, error) { |
| 345 | j := jsonpath.New(name) |
| 346 | buf := new(bytes.Buffer) |
| 347 | if err := j.Parse(template); err != nil { |
| 348 | return "", err |
| 349 | } |
| 350 | if err := j.Execute(buf, input); err != nil { |
| 351 | return "", err |
| 352 | } |
| 353 | return buf.String(), nil |
| 354 | } |
| 355 | |
| 356 | type conditionalTransport struct { |
| 357 | oauthTransport *oauth2.Transport |
no test coverage detected