Documentation
¶
Overview ¶
Package cache provides file-based template caching with TTL support.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadTemplates ¶
LoadTemplates reads the cache file and returns templates if fresh. Returns (nil, nil) when: file missing, JSON corrupt, or TTL expired. Only returns a non-nil error for unexpected read failures.
Types ¶
Click to show internal directories.
Click to hide internal directories.