diff options
| author | Eltrac <hi@guhub.cn> | 2025-11-28 14:48:13 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-11-28 14:48:13 +0800 |
| commit | 8284b647b787e63883257b5bf046fe0b27aaa266 (patch) | |
| tree | 80063d162b7a9d7fb9216eeb0c24b97652609710 | |
| parent | 38914001258d86e229202bef8a393e257ddc9758 (diff) | |
style: name return types of ReadCache()
| -rw-r--r-- | cache.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
