Path returns the absolute path the given relative file or directory path, relative to the google.golang.org/grpc/testdata directory in the user's GOPATH. If rel is already absolute, it is returned unmodified.
(rel string)
| 35 | // relative to the google.golang.org/grpc/testdata directory in the user's GOPATH. |
| 36 | // If rel is already absolute, it is returned unmodified. |
| 37 | func Path(rel string) string { |
| 38 | if filepath.IsAbs(rel) { |
| 39 | return rel |
| 40 | } |
| 41 | |
| 42 | return filepath.Join(basepath, rel) |
| 43 | } |