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)
| 34 | // relative to the google.golang.org/grpc/testdata directory in the user's GOPATH. |
| 35 | // If rel is already absolute, it is returned unmodified. |
| 36 | func Path(rel string) string { |
| 37 | if filepath.IsAbs(rel) { |
| 38 | return rel |
| 39 | } |
| 40 | |
| 41 | return filepath.Join(basepath, rel) |
| 42 | } |