MCPcopy
hub / github.com/rodrigo-brito/gocity / GetIdentifier

Function GetIdentifier

lib/file.go:31–37  ·  view source on GitHub ↗
(tmpFolder, path, pkg, name string)

Source from the content-addressed store, hash-verified

29}
30
31func GetIdentifier(tmpFolder, path, pkg, name string) string {
32 path = TrimTemporaryPath(tmpFolder, path, pkg)
33 if len(name) > 0 {
34 return fmt.Sprintf("%s.(%s)", path, name)
35 }
36 return path
37}
38
39func IsGoFile(name string) bool {
40 return strings.HasSuffix(name, ".go")

Callers 2

VisitMethod · 0.92
TestGetIdentifierFunction · 0.85

Calls 1

TrimTemporaryPathFunction · 0.85

Tested by 1

TestGetIdentifierFunction · 0.68