Documentation
¶
Overview ¶
Package cache memoizes per-file lint findings keyed by a content + config hash, so re-linting unchanged files is near-instant. It is used only by plain `lint` (fix/diff/fmt always run fresh); the key folds in everything that can change a file's findings, so a stale result is never returned.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDir ¶
DefaultDir returns the per-user cache directory for doclint.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is a content-addressed store of per-file findings.
func Open ¶
Open loads the cache from dir, returning an empty cache if it is absent or unreadable (a corrupt cache is never fatal — it just rebuilds).
Click to show internal directories.
Click to hide internal directories.