MFD Go Generator

•
5
•

Generates high-quality Go models, repositories, and test factories directly from PostgreSQL schemas and XML definitions.

The MFD Generator skill streamlines the Go API development lifecycle by automating the creation of database-driven code. It interprets PostgreSQL schemas to generate standard models, repositories, and VT services based on vmkteam conventions. It handles complex tasks like custom search field generation (including JSONB paths), audit field management, and test factory creation, ensuring consistency across the data layer while adhering to strict project layouts and naming conventions. This tool is essential for developers working on Go-based backends who want to minimize boilerplate and maintain a single source of truth for their data models.

Key Features

01Built-in support for models, repositories, and VT-services
02Automatic Go code generation from PostgreSQL XML descriptions
03Advanced search type support including ILIKE, JSONB path, and array operations
04Standardized Makefile integration for XML synchronization and code updates
05Automated test factory generation for robust database testing
065 GitHub stars

Use Cases

01Updating existing Go codebases when database schemas or search requirements change
02Implementing complex JSONB or array-based search filters in Go backend services
03Rapidly scaffolding Go database models and repositories for new PostgreSQL tables