feat: xiaji-go v1.0.0 - 智能记账机器人

- Telegram Bot + QQ Bot (WebSocket) 双平台支持
- 150+ 预设分类关键词,jieba 智能分词
- Web 管理后台(记录查看/删除/CSV导出)
- 金额精确存储(分/int64)
- 版本信息嵌入(编译时注入)
- Docker 支持
- 优雅关闭(context + signal)
This commit is contained in:
2026-02-15 06:40:04 +08:00
commit 0c1a4f06f7
18 changed files with 1719 additions and 0 deletions

22
version/version.go Normal file
View File

@@ -0,0 +1,22 @@
package version
import (
"fmt"
"runtime"
)
var (
Version = "dev"
GitCommit = "unknown"
BuildTime = "unknown"
GoVersion = runtime.Version()
)
func Info() string {
return fmt.Sprintf("Xiaji-Go %s (commit: %s, built: %s, %s %s/%s)",
Version, GitCommit, BuildTime, GoVersion, runtime.GOOS, runtime.GOARCH)
}
func Short() string {
return fmt.Sprintf("Xiaji-Go %s", Version)
}