MCPcopy Create free account
hub / github.com/bufbuild/buf / Ext

Function Ext

private/pkg/normalpath/normalpath.go:161–163  ·  view source on GitHub ↗

Ext is equivalent to filepath.Ext. Can return empty string.

(path string)

Source from the content-addressed store, hash-verified

159//
160// Can return empty string.
161func Ext(path string) string {
162 return filepath.Ext(Unnormalize(path))
163}
164
165// Join is equivalent to filepath.Join.
166//

Callers 14

getNonProtoFilePathFunction · 0.92
ValidateProtoPathFunction · 0.92
MatchPathExtFunction · 0.92
readBufYAMLFileFunction · 0.92
getRootToExcludesFunction · 0.92
AddLocalModuleMethod · 0.92
newModuleFunction · 0.92
FileTypeForPathFunction · 0.92
imageWithOnlyPathsFunction · 0.92

Calls 1

UnnormalizeFunction · 0.85

Tested by 3

testExtFunction · 0.68
testExtFunction · 0.68