MCPcopy
hub / github.com/avelino/awesome-go / cacheFilePath

Function cacheFilePath

main.go:563–565  ·  view source on GitHub ↗
(p *Project)

Source from the content-addressed store, hash-verified

561}
562
563func cacheFilePath(p *Project) string {
564 return filepath.Join(".cache", "repos", p.Owner, p.Repo+".json")
565}
566
567func readCachedMeta(p *Project) (*RepoMeta, error) {
568 data, err := os.ReadFile(cacheFilePath(p))

Callers 2

readCachedMetaFunction · 0.85
writeCachedMetaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected