summaryrefslogtreecommitdiff
path: root/cache.go
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-11-28 14:48:13 +0800
committerEltrac <hi@guhub.cn>2025-11-28 14:48:13 +0800
commit8284b647b787e63883257b5bf046fe0b27aaa266 (patch)
tree80063d162b7a9d7fb9216eeb0c24b97652609710 /cache.go
parent38914001258d86e229202bef8a393e257ddc9758 (diff)
style: name return types of ReadCache()
Diffstat (limited to 'cache.go')
-rw-r--r--cache.go2
1 files changed, 1 insertions, 1 deletions
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)