MCPcopy Index your code
hub / github.com/microsoft/typescript-go / FileExtensionIs

Function FileExtensionIs

internal/tspath/path.go:1045–1047  ·  view source on GitHub ↗
(path string, extension string)

Source from the content-addressed store, hash-verified

1043}
1044
1045func FileExtensionIs(path string, extension string) bool {
1046 return len(path) > len(extension) && strings.HasSuffix(path, extension)
1047}
1048
1049// Calls `callback` on `directory` and every ancestor directory it has, returning the first defined result.
1050// Stops at global cache location

Calls 1

lenFunction · 0.85

Tested by

no test coverage detected