From 8284b647b787e63883257b5bf046fe0b27aaa266 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Fri, 28 Nov 2025 14:48:13 +0800 Subject: style: name return types of ReadCache() --- cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache.go b/cache.go index a81ea66..caab2e0 100644 --- a/cache.go +++ b/cache.go @@ -14,7 +14,7 @@ func CachePath(rel string) string { return path } -func ReadCache(relPath string, ttl time.Duration) ([]byte, bool) { +func ReadCache(relPath string, ttl time.Duration) (data []byte, cacheHit bool) { path := CachePath(relPath) info, err := os.Stat(path) -- cgit v1.2.3