Versions in this module Expand all Collapse all v0 v0.8.0 Mar 29, 2026 Changes in this version + const PkgDocTTL + const URLCacheTTL + func IndexProjectImports(ctx context.Context, projectPath string, g *graph.Graph, cache *Cache, ...) + func IsStdlib(importPath string) bool + func PackageCacheKey(importPath, version string) string + func ParseGoMod(projectPath string) (map[string]string, error) + func StripHTML(s string) string + type Cache struct + func New(s *store.Store) *Cache + func (c *Cache) Fetch(ctx context.Context, rawURL string, ttlHours int) (string, bool, error) + func (c *Cache) FetchFresh(ctx context.Context, url string) (string, error) + func (c *Cache) FetchPackageDocs(ctx context.Context, importPath, version string) (string, bool, error) + func (c *Cache) FetchPackageDocsFresh(ctx context.Context, importPath, version string) (string, error) + func (c *Cache) InvalidatePackage(importPath, oldVersion string)