feat(cache): wrap kv cache (fanal#62)

This commit is contained in:
Teppei Fukuda
2019-12-25 13:57:07 +02:00
committed by GitHub
parent 60a7565870
commit eaf9fa5e3f
6 changed files with 88 additions and 111 deletions

View File

@@ -5,7 +5,6 @@ import (
"fmt"
"os"
"os/exec"
"path/filepath"
)
var (
@@ -17,8 +16,7 @@ func CacheDir() string {
if err != nil {
cacheDir = os.TempDir()
}
dir := filepath.Join(cacheDir, "fanal")
return dir
return cacheDir
}
func StringInSlice(a string, list []string) bool {