Update README

Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
2023-04-01 13:45:18 +08:00
parent 6ef676f712
commit db04212b56
2 changed files with 10 additions and 3 deletions
+7 -1
View File
@@ -3,6 +3,7 @@ package handler
import (
"encoding/base64"
"encoding/json"
"errors"
"fmt"
"honoka-chan/config"
"honoka-chan/database"
@@ -143,7 +144,12 @@ func ApiHandler(ctx *gin.Context) {
}
default:
// fmt.Println("Fuck you!")
// err = errors.New("invalid option")
fmt.Println(v)
err = errors.New("invalid option")
}
if err != nil {
panic(err)
}
res, err = database.LevelDb.Get([]byte(key))