ReadDiskCacheFileString 读取磁盘缓存文件为字符串
(filePath string)
| 91 | |
| 92 | // ReadDiskCacheFileString 读取磁盘缓存文件为字符串 |
| 93 | func ReadDiskCacheFileString(filePath string) (string, error) { |
| 94 | data, err := os.ReadFile(filePath) |
| 95 | if err != nil { |
| 96 | return "", err |
| 97 | } |
| 98 | return string(data), nil |
| 99 | } |
| 100 | |
| 101 | // RemoveDiskCacheFile 删除磁盘缓存文件 |
| 102 | func RemoveDiskCacheFile(filePath string) error { |
nothing calls this directly
no outgoing calls
no test coverage detected