Go to file
2025-01-17 23:10:04 +08:00
cache feat: 新增redis缓存和zap配置 2025-01-14 02:25:17 +08:00
common feat: 完善MVC逻辑代码 2025-01-13 16:32:03 +08:00
config feat: 新增viper配置和完善zap配置 2025-01-14 16:01:03 +08:00
docker chore: 修改go-learn为模块名 2025-01-17 23:10:04 +08:00
domain feat: 完善MVC逻辑代码 2025-01-13 16:32:03 +08:00
global feat: 新增viper配置和完善zap配置 2025-01-14 16:01:03 +08:00
internal chore: 修改go-learn为模块名 2025-01-17 22:53:48 +08:00
pkg chore: 修改go-learn为模块名 2025-01-17 22:53:48 +08:00
router chore: 修改go-learn为模块名 2025-01-17 22:53:48 +08:00
service chore: 修改go-learn为模块名 2025-01-17 22:53:48 +08:00
.gitignore feat: 新增viper配置和完善zap配置 2025-01-14 16:01:03 +08:00
go.mod chore: 修改go-learn为模块名 2025-01-17 22:53:48 +08:00
go.sum feat: 新增viper配置和完善zap配置 2025-01-14 16:01:03 +08:00
main.go chore: 修改go-learn为模块名 2025-01-17 22:53:48 +08:00
README.md chore: 修改go-learn为模块名 2025-01-17 23:10:04 +08:00

go-learn

前言

这是一个我头脑一热写出来的go的demo项目功能不多注重的是go清晰的代码规范和良好的代码结构。这个项目结构风格借鉴了以下开源项目的代码风格它们都非常优秀我拉取它们的代码并学到了非常多东西

该项目用的gin和gorm为了方便起见数据库直接使用文件数据库sqlite我把最近学的go-rediszapviper库融合了进这个demo项目。

参考文章

项目正在持续更新欢迎大家clone和fork学习