first commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# portal-mini-go
|
||||
|
||||
基于 Go 的中后台/门户类后端服务。
|
||||
|
||||
## 技术栈
|
||||
|
||||
- Web 框架:gin
|
||||
- 参数校验:go-playground/validator/v10
|
||||
- 配置:viper + YAML
|
||||
- 日志:log/slog
|
||||
- 数据库:GORM(MySQL / PostgreSQL)
|
||||
- 缓存:go-redis/redis
|
||||
|
||||
## 目录结构
|
||||
|
||||
```
|
||||
cmd/ # 可执行程序入口
|
||||
internal/ # 私有业务代码(handler / service / repository / model / pkg)
|
||||
pkg/ # 对外公开公共库
|
||||
configs/ # 配置文件模板
|
||||
```
|
||||
|
||||
## 开发
|
||||
|
||||
```bash
|
||||
go mod tidy
|
||||
go run ./cmd/...
|
||||
go test ./...
|
||||
```
|
||||
Reference in New Issue
Block a user