Fix: 替换SQLite为JSON文件存储,无需CGO支持
- 移除go-sqlite3依赖,改用纯Go的JSON文件存储 - 解决Windows上CGO_ENABLED=0导致SQLite无法使用的问题 - 添加线程安全的读写锁保护 - 支持数据持久化,重启后数据不丢失 - 简化存储逻辑,提高可靠性
This commit is contained in:
@@ -23,6 +23,8 @@ echo.
|
||||
echo [2/3] Building program...
|
||||
set GOOS=windows
|
||||
set GOARCH=amd64
|
||||
set CGO_ENABLED=1
|
||||
set CXX=x86_64-w64-mingw32-g++
|
||||
go build -o network-topology.exe -ldflags="-s -w" ./cmd
|
||||
|
||||
if %ERRORLEVEL% NEQ 0 (
|
||||
|
||||
Reference in New Issue
Block a user