Golang Rest Orm Unit Test
C+ 77 completed
Other
api / go · tiny
13
Files
1,597
LOC
1
Frameworks
4
Languages
Pipeline State
completedRun ID
#1340937Phase
doneProgress
0%Started
2026-04-16 02:07:54Finished
2026-04-16 02:07:54LLM tokens
0Pipeline Metadata
Stage
SkippedDecision
skip_scaffold_dupNovelty
22.66Framework unique
—Isolation
—Last stage change
2026-04-16 18:15:42Deduplication group #47938
Member of a group with 20 similar repo(s) — canonical #480858 view group →
Source: Repobility analyzer · https://repobility.com
AI Prompt
Create a complete RESTful API in Go for managing users, including full CRUD operations. The API must use the Gin framework and implement data persistence using GORM. For production, connect it to MySQL, but ensure it can use SQLite in-memory for testing. I also need the API to be fully documented using Swagger, and I should use Viper for configuration management, reading settings from a YAML file. Finally, include unit tests for the user model and controllers.
go gin rest-api gorm mysql sqlite swagger crud golang testing
Generated by gemma4:latest
Catalog Information
Create a complete RESTful API in Go for managing users, including full CRUD operations. The API must use the Gin framework and implement data persistence using GORM. For production, connect it to MySQL, but ensure it can use SQLite in-memory for testing. I also need the API to be fully documented using Swagger, and I should use Viper for configuration management, reading settings from a YAML file. Finally, include unit tests for the user model and controllers.
Tags
go gin rest-api gorm mysql sqlite swagger crud golang testing
Quality Score
C+
77.3/100
Structure
64
Code Quality
100
Documentation
66
Testing
50
Practices
80
Security
100
Dependencies
70
Strengths
- Consistent naming conventions (snake_case)
- Low average code complexity — well-structured code
- Good security practices — no major issues detected
Weaknesses
- No LICENSE file — legal ambiguity for contributors
- No CI/CD configuration — manual testing and deployment
Recommendations
- Set up CI/CD (GitHub Actions recommended) to automate testing and deployment
- Add a linter configuration to enforce code style consistency
- Add a LICENSE file (MIT recommended for open source)
Languages
Frameworks
Gin
Symbols
function8
struct3
constant1
variable1
Embed Badge
Add to your README:
