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