7 مستودعات
Overriding default code generation templates and injecting vendor extensions to tailor output.
Distinct from Code Generators: Distinct from Code Generators: focuses on customizing the generation process via templates and extensions, not just generating code from definitions.
Explore 7 awesome GitHub repositories matching data & databases · Template-Based Code Customizers. Refine with filters or upvote what's useful.
go-swagger is a toolkit for working with Swagger/OpenAPI 2.0 specifications in Go. It generates server, client, and CLI code from a specification document, and can also produce a specification by scanning annotated Go source code. The project includes a static validation engine that checks documents against the schema and project-specific rules, and a specification transformation pipeline that resolves, flattens, and merges documents. The toolkit generates both client and server code from the same specification, ensuring consistency in request and response handling. It also produces a command
Allows overriding default templates and injecting vendor extensions to customize generated code.
Mockery is a code generation tool that produces mock implementations from Go interfaces, designed to simplify unit testing by automating the creation of test doubles. It parses Go source files using abstract syntax tree analysis to extract interface method signatures, then generates complete mock struct types that implement those interfaces with configurable function fields for test injection. The tool distinguishes itself through its configuration and customization capabilities. Rather than embedding directives in source code annotations, Mockery reads generation settings from a YAML configu
Uses custom templates and template data to control the structure and behavior of generated mocks.
sqlboiler is a database-first ORM generator for Go that analyzes an existing database schema to produce strongly typed structures and query helpers. It functions as a schema-driven code generator, transforming database tables and relationships into executable Go source code. The project distinguishes itself through a type-safe query builder that uses chainable modifiers to construct SQL statements, eliminating the need for raw string concatenation. It utilizes customizable text templates to generate source code, allowing for the aliasing of schema entities and the creation of custom templates
Allows overriding base templates and applying column filters to control the structure of generated output.
gotests هي أداة تحليل ثابت ومولد للكود المبدئي (boilerplate) للغة Go، تقوم بإنشاء مجموعات اختبار منظمة تلقائياً من الكود المصدري. تعمل كإطار عمل للاختبارات المعتمدة على الجداول (table-driven tests) وتتعامل مع حل الأنواع (type resolution) للدوال والأساليب، بما في ذلك تعيين قيود الأنواع العامة (generic type constraints) إلى أنواع تنفيذية محددة. تتكامل الأداة مع نماذج لغوية كبيرة (LLMs) لتوليد قيم إدخال واقعية وحالات حافة (edge cases) بناءً على منطق الدالة. تستخدم نظام توليد يعتمد على القوالب، مما يسمح بتخصيص هيكل وتنسيق كود الاختبار الناتج من خلال قوالب ومعاملات خارجية. يوفر المشروع أدوات سطر أوامر (CLI) لمسح الحزم بشكل متكرر ومعالجة شجرة الدليل. كما يتضمن آليات للتحكم في النطاق لاختيار الدوال باستخدام التعبيرات النمطية (regex) ومعدلات الرؤية.
Provides mechanisms to modify the structure and format of generated test code using custom templates.
xo هي أداة لتوليد نماذج Go آمنة الأنواع وكود تنفيذ الاستعلام من مخططات واستعلامات قاعدة بيانات SQL. تعمل كأداة SQL متعددة اللهجات تدعم PostgreSQL، و MySQL، و SQLite، و Oracle، و Microsoft SQL Server لإنتاج كود مصدر اصطلاحي. يستخدم المشروع نظام توليد قائماً على القوالب، مما يسمح بتحديد هيكل ومنطق كود مصدر قاعدة البيانات المولد من خلال قوالب نصية قابلة للتخصيص. كما يتضمن مصوراً لمخطط قاعدة البيانات يحلل علاقات الجداول والتعريفات لإنشاء مخططات مرئية وتوثيق منظم. تغطي إمكانات الأداة توليد كود SQL مؤتمت وإنشاء نماذج قاعدة بيانات متخصصة. توفر أدوات لتعيين استعلامات SQL مخصصة لوظائف Go وتوليد نصوص مخطط لتوثيق ترحيلات قاعدة البيانات.
Supports the use of text templates to modify the structure and logic of generated code.
dbtpl هو مولد نماذج قاعدة بيانات ومحلل مخطط ينتج كود مصدر آمن الأنواع ونماذج بيانات من مخططات قاعدة بيانات SQL. يعمل كأداة سطر أوامر تقوم بتعيين أنواع SQL إلى هياكل Go ووظائف التنفيذ، مع توفير نظام قائم على القوالب لإنشاء كود مصدر مخصص وتعريفات مخطط. تدعم الأداة محركات قواعد بيانات متعددة، بما في ذلك PostgreSQL، و MySQL، و SQLite، و Oracle، و SQL Server. تتميز بالسماح للمستخدمين بتحديد تنسيقات مخرجات مخصصة من خلال قوالب نصية والقدرة على توليد تعريفات نماذج متوافقة لإطار عمل الويب Django. تمتد إمكاناتها إلى إنتاج نصوص SQL لترحيل قاعدة البيانات والنسخ المتطابق، بالإضافة إلى تصدير تمثيلات المخطط بتنسيقات JSON أو YAML. بالإضافة إلى ذلك، يمكنها توليد ملفات dot لتصور علاقات قاعدة البيانات والمخططات الهيكلية.
The tool allows defining custom output formats by authoring or modifying base templates to match specific organizational requirements.
TypeScript generator is a build tool that parses backend class structures and REST endpoints in Java to generate corresponding TypeScript types and client services. It functions as both a static type definition generator and a Java REST client generator, translating compiled class properties, collections, and server-side endpoint definitions into equivalent frontend type definitions and client-side service classes. The tool builds an abstract syntax representation from scanned bytecode using reflection and compiles output through configurable module scoping, formatting declarations into globa
Controls how generated code structures outputs into global definitions, ambient modules, or standard files with declarations.