This commit is contained in:
1-6
2023-08-09 10:52:34 +08:00
parent 70bad0cc52
commit 2b19690add
12 changed files with 67 additions and 109 deletions
+4 -1
View File
@@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"os"
"path/filepath"
"reflect"
"time"
@@ -55,7 +56,9 @@ func Get(key string) string {
var Buckets = []Bucket{}
func Initsillyplus() storage.Bucket {
bd := utils.GetDataHome() + "sillyGirl.db"
bd := filepath.Join(utils.GetDataHome(), "sillyGirl.db")
_, err := os.Stat(bd)
if err != nil {
f, err := os.Create(bd)