MCPcopy
hub / github.com/grpc/grpc-go / Path

Function Path

examples/data/data.go:38–44  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
38func Path(rel string) string {
39 if filepath.IsAbs(rel) {
40 return rel
41 }
42
43 return filepath.Join(basepath, rel)
44}

Callers 12

mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected