Fix: 替换SQLite为JSON文件存储,无需CGO支持
- 移除go-sqlite3依赖,改用纯Go的JSON文件存储 - 解决Windows上CGO_ENABLED=0导致SQLite无法使用的问题 - 添加线程安全的读写锁保护 - 支持数据持久化,重启后数据不丢失 - 简化存储逻辑,提高可靠性
This commit is contained in:
+1
-4
@@ -4,7 +4,4 @@ go 1.26.2
|
||||
|
||||
require golang.org/x/crypto v0.50.0
|
||||
|
||||
require (
|
||||
github.com/mattn/go-sqlite3 v1.14.42 // indirect
|
||||
golang.org/x/sys v0.43.0 // indirect
|
||||
)
|
||||
require golang.org/x/sys v0.43.0 // indirect
|
||||
|
||||
Verwijs in nieuw issue
Block a user