删除文件 stat.go

This commit is contained in:
刘铭 2023-02-17 00:15:27 +00:00 committed by Gitee
parent de6a958a60
commit 0d254d26e3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 0 additions and 19 deletions

19
stat.go
View File

@ -1,19 +0,0 @@
package dget
import (
"os"
"path/filepath"
"github.com/boltdb/bolt"
)
var cache *bolt.DB
func initCache() error {
db, err := bolt.Open(filepath.Join(os.TempDir(), "fb-runner.db"), 0600, nil)
if err != nil {
return err
}
cache = db
return nil
}