WithBasePath returns an Interface, which preprends basePath to non-absolute requested paths.
(f Interface, basePath ...string)
| 37 | |
| 38 | // WithBasePath returns an Interface, which preprends basePath to non-absolute requested paths. |
| 39 | func WithBasePath(f Interface, basePath ...string) Interface { |
| 40 | return basePathFetcher{ |
| 41 | Interface: f, |
| 42 | basePath: append(basePath[:0:0], basePath...), |
| 43 | } |
| 44 | } |
no outgoing calls